diff --git a/src/lib/components/TextInput.stories.svelte b/src/lib/components/TextInput.stories.svelte index 19a5afa..f207c1c 100644 --- a/src/lib/components/TextInput.stories.svelte +++ b/src/lib/components/TextInput.stories.svelte @@ -6,8 +6,41 @@ title: 'TextInput', component: TextInput, tags: ['autodocs'], - argTypes: {} + argTypes: { + color: { + control: 'select', + options: [ + 'primary', + 'secondary', + 'accent', + 'ghost', + 'link', + 'info', + 'success', + 'warning', + 'error' + ] + }, + bordered: { + control: 'boolean' + }, + size: { + control: 'select', + options: ['Default', 'xs', 'sm', 'lg'], + defaultValue: 'Default' + }, + type: { + control: 'select', + options: ['email', 'password', 'search', 'tel', 'text', 'url'] + } + } }); - \ No newline at end of file +{#snippet icon()} + +{/snippet} + + + + \ No newline at end of file diff --git a/src/lib/components/TextInput.svelte b/src/lib/components/TextInput.svelte index e4041e7..50bfd05 100644 --- a/src/lib/components/TextInput.svelte +++ b/src/lib/components/TextInput.svelte @@ -1,26 +1,67 @@ -