feat: add missing storybook files and type template arguments properly

This commit is contained in:
Ilia Mashkov
2026-04-17 18:01:24 +03:00
parent 5eb9584797
commit bb65f1c8d6
31 changed files with 1124 additions and 90 deletions
@@ -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>