diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-04 15:45:08 +0200 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-04 15:45:08 +0200 | 
| commit | 8a4fbf91b0ffdcb0ec38105f918ce6f90e6ec161 (patch) | |
| tree | ad4be73ddaf8d8b82fb43740d25aa72d2b8ff055 /src/components/atoms/headings/heading.stories.tsx | |
| parent | 1fe43a98098eeef254a26b21d77e2d0ce8e55c30 (diff) | |
chore: add a Branding component
Diffstat (limited to 'src/components/atoms/headings/heading.stories.tsx')
| -rw-r--r-- | src/components/atoms/headings/heading.stories.tsx | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/src/components/atoms/headings/heading.stories.tsx b/src/components/atoms/headings/heading.stories.tsx index 9958af9..0b286fe 100644 --- a/src/components/atoms/headings/heading.stories.tsx +++ b/src/components/atoms/headings/heading.stories.tsx @@ -4,6 +4,10 @@ import HeadingComponent from './heading';  export default {    title: 'Atoms/Headings',    component: HeadingComponent, +  args: { +    isFake: false, +    withMargin: true, +  },    argTypes: {      children: {        description: 'Heading body.', @@ -12,6 +16,20 @@ export default {          required: true,        },      }, +    isFake: { +      control: { +        type: 'boolean', +      }, +      description: 'Use an heading element or only its styles.', +      table: { +        category: 'Options', +        defaultValue: { summary: false }, +      }, +      type: { +        name: 'boolean', +        required: false, +      }, +    },      level: {        control: {          type: 'select', @@ -23,6 +41,20 @@ export default {          required: true,        },      }, +    withMargin: { +      control: { +        type: 'boolean', +      }, +      description: 'Adds margin.', +      table: { +        category: 'Options', +        defaultValue: { summary: true }, +      }, +      type: { +        name: 'boolean', +        required: false, +      }, +    },    },  } as ComponentMeta<typeof HeadingComponent>; | 
