feat: add missing storybook files and type template arguments properly
This commit is contained in:
@@ -28,6 +28,8 @@ const { Story } = defineMeta({
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import type { ComponentProps } from 'svelte';
|
||||
|
||||
let defaultSearchValue = $state('');
|
||||
</script>
|
||||
|
||||
@@ -36,9 +38,10 @@ let defaultSearchValue = $state('');
|
||||
args={{
|
||||
value: defaultSearchValue,
|
||||
placeholder: 'Type here...',
|
||||
variant: 'filled',
|
||||
}}
|
||||
>
|
||||
{#snippet template(args)}
|
||||
<SearchBar variant="filled" {...args} />
|
||||
{#snippet template(args: ComponentProps<typeof SearchBar>)}
|
||||
<SearchBar {...args} />
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
Reference in New Issue
Block a user