From fc66be1e3b77bbca39217d4f63753c729d883ce7 Mon Sep 17 00:00:00 2001 From: Francesca Giannino Date: Fri, 5 Jul 2024 14:24:21 +0200 Subject: [PATCH] doc: story for input --- .../{form.stories.tsx => input.stories.tsx} | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) rename apps/storybook/stories/{form.stories.tsx => input.stories.tsx} (73%) diff --git a/apps/storybook/stories/form.stories.tsx b/apps/storybook/stories/input.stories.tsx similarity index 73% rename from apps/storybook/stories/form.stories.tsx rename to apps/storybook/stories/input.stories.tsx index adac5696..6fe62f75 100644 --- a/apps/storybook/stories/form.stories.tsx +++ b/apps/storybook/stories/input.stories.tsx @@ -10,26 +10,23 @@ export default meta; type Story = StoryObj; const TemplateInput = (args: InputProps) => ` - - - + + + `; -export const Input: Story = { +export const InputSizes: Story = { render: TemplateInput, - args: { - placeholder: "Name" - }, + args: {}, }; const TemplateOnlyInput = (args: InputProps) => ` - + `; export const InputWithoutLabel: Story = { render: TemplateOnlyInput, args: { - placeholder: "Search...", labelForScreenReaders: "Label for screen readers only" }, }; \ No newline at end of file