diff --git a/src/shared/ui/Input/Input.stories.svelte b/src/shared/ui/Input/Input.stories.svelte index 7ad789b..ed7fbd1 100644 --- a/src/shared/ui/Input/Input.stories.svelte +++ b/src/shared/ui/Input/Input.stories.svelte @@ -8,10 +8,11 @@ const { Story } = defineMeta({ parameters: { docs: { description: { - component: 'Styles Input component', + component: 'Styled input component with size and variant options', }, story: { inline: false }, // Render stories in iframe for state isolation }, + layout: 'centered', }, argTypes: { placeholder: { @@ -22,21 +23,76 @@ const { Story } = defineMeta({ control: 'text', description: "input's value", }, + variant: { + control: 'select', + options: ['default', 'ghost'], + description: 'Visual style variant', + }, + size: { + control: 'select', + options: ['sm', 'md', 'lg'], + description: 'Size variant', + }, }, }); - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ Small + +
+
+ Medium + +
+
+ Large + +
+
diff --git a/src/shared/ui/Input/Input.svelte b/src/shared/ui/Input/Input.svelte index 73e7a50..3e62d23 100644 --- a/src/shared/ui/Input/Input.svelte +++ b/src/shared/ui/Input/Input.svelte @@ -2,60 +2,89 @@ Component: Input Provides styled input component with all the shadcn input props --> - + -