Setup a very basic storybook

This commit is contained in:
garronej 2023-04-17 00:15:41 +02:00
parent 8c8eef22ce
commit 045c20844f
15 changed files with 5915 additions and 391 deletions

View file

@ -0,0 +1,21 @@
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { createPageStory } from "../createPageStory";
const { PageStory } = createPageStory({
pageId: "my-extra-page-2.ftl"
});
export default {
title: "login/MyExtraPage2",
component: PageStory,
} as ComponentMeta<typeof PageStory>;
export const Default: ComponentStory<typeof PageStory> = () => <PageStory />;
export const WitAbc: ComponentStory<typeof PageStory> = () => (
<PageStory
kcContext={{
someCustomValue: "abc"
}}
/>
);