Setup a very basic storybook
This commit is contained in:
parent
8c8eef22ce
commit
045c20844f
15 changed files with 5915 additions and 391 deletions
21
src/keycloak-theme/login/pages/MyExtraPage2.stories.tsx
Normal file
21
src/keycloak-theme/login/pages/MyExtraPage2.stories.tsx
Normal 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"
|
||||
}}
|
||||
/>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue