diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-22 19:34:01 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:23:48 +0200 |
| commit | a6ff5eee45215effb3344cb5d631a27a7c0369aa (patch) | |
| tree | 5051747acf72318b4fc5c18d603e3757fbefdfdb /src/components/atoms/forms/label.stories.tsx | |
| parent | 651ea4fc992e77d2f36b3c68f8e7a70644246067 (diff) | |
refactor(components): rewrite form components
Diffstat (limited to 'src/components/atoms/forms/label.stories.tsx')
| -rw-r--r-- | src/components/atoms/forms/label.stories.tsx | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/src/components/atoms/forms/label.stories.tsx b/src/components/atoms/forms/label.stories.tsx deleted file mode 100644 index 3adc92a..0000000 --- a/src/components/atoms/forms/label.stories.tsx +++ /dev/null @@ -1,104 +0,0 @@ -import { ComponentMeta, ComponentStory } from '@storybook/react'; -import { Label as LabelComponent } from './label'; - -/** - * Label - Storybook Meta - */ -export default { - title: 'Atoms/Forms', - component: LabelComponent, - args: { - required: false, - size: 'small', - }, - argTypes: { - 'aria-label': { - control: { - type: 'text', - }, - description: 'Define an accessible name.', - table: { - category: 'Accessibility', - }, - type: { - name: 'string', - required: false, - }, - }, - className: { - control: { - type: 'text', - }, - description: 'Add classnames to the label.', - table: { - category: 'Styles', - }, - type: { - name: 'string', - required: false, - }, - }, - children: { - control: { - type: 'text', - }, - description: 'The label body.', - type: { - name: 'string', - required: true, - }, - }, - htmlFor: { - control: { - type: 'text', - }, - description: 'The field id.', - type: { - name: 'string', - required: true, - }, - }, - required: { - control: { - type: 'boolean', - }, - description: 'Set to true if the field is required.', - table: { - category: 'Options', - defaultValue: { summary: false }, - }, - type: { - name: 'boolean', - required: false, - }, - }, - size: { - control: { - type: 'select', - }, - description: 'The label size.', - options: ['medium', 'small'], - table: { - category: 'Options', - defaultValue: { summary: 'small' }, - }, - type: { - name: 'string', - required: false, - }, - }, - }, -} as ComponentMeta<typeof LabelComponent>; - -const Template: ComponentStory<typeof LabelComponent> = ({ - children, - ...args -}) => <LabelComponent {...args}>{children}</LabelComponent>; - -/** - * Label Story - */ -export const Label = Template.bind({}); -Label.args = { - children: 'A label', -}; |
