diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-01 22:46:07 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-01 22:58:23 +0200 |
| commit | 2b70c89962a18f33995fcca762fed73fd5ce8f28 (patch) | |
| tree | 2176c687b0e21053df9cb9bfde50d78c0a2514fc /src/components/atoms/forms/field.stories.tsx | |
| parent | d177e0c7c61845b516d4a361a21739bb6486b9b5 (diff) | |
chore: add labelled field component
Diffstat (limited to 'src/components/atoms/forms/field.stories.tsx')
| -rw-r--r-- | src/components/atoms/forms/field.stories.tsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/atoms/forms/field.stories.tsx b/src/components/atoms/forms/field.stories.tsx index 0406f10..02681e7 100644 --- a/src/components/atoms/forms/field.stories.tsx +++ b/src/components/atoms/forms/field.stories.tsx @@ -31,12 +31,9 @@ export default { type: 'text', }, description: 'Field id.', - table: { - category: 'Options', - }, type: { name: 'string', - required: false, + required: true, }, }, max: { @@ -70,12 +67,9 @@ export default { type: 'text', }, description: 'Field name.', - table: { - category: 'Options', - }, type: { name: 'string', - required: false, + required: true, }, }, placeholder: { @@ -171,6 +165,8 @@ const Template: ComponentStory<typeof FieldComponent> = (args) => ( export const Field = Template.bind({}); Field.args = { + id: 'field-storybook', + name: 'field-storybook', setValue: () => null, value: '', }; |
