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
@@ -16,8 +16,12 @@ const { Story } = defineMeta({
});
</script>
<script lang="ts">
import type { ComponentProps } from 'svelte';
</script>
<Story name="Default">
{#snippet template(args)}
{#snippet template(args: ComponentProps<typeof Footnote>)}
<Footnote {...args}>
Footnote
</Footnote>
@@ -25,7 +29,7 @@ const { Story } = defineMeta({
</Story>
<Story name="With custom render">
{#snippet template(args)}
{#snippet template(args: ComponentProps<typeof Footnote>)}
<Footnote {...args}>
{#snippet render({ class: className })}
<span class={className}>Footnote</span>