chore: rewrite existing shared/ui stories using snippet template pattern
This commit is contained in:
@@ -55,7 +55,9 @@ let longValue = $state(
|
||||
letterSpacing: 0,
|
||||
}}
|
||||
>
|
||||
<ContentEditable bind:text={value} />
|
||||
{#snippet template(args)}
|
||||
<ContentEditable bind:text={value} {...args} />
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
<Story
|
||||
@@ -67,7 +69,9 @@ let longValue = $state(
|
||||
letterSpacing: 0,
|
||||
}}
|
||||
>
|
||||
<ContentEditable bind:text={smallValue} />
|
||||
{#snippet template(args)}
|
||||
<ContentEditable bind:text={smallValue} {...args} />
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
<Story
|
||||
@@ -79,7 +83,9 @@ let longValue = $state(
|
||||
letterSpacing: 0,
|
||||
}}
|
||||
>
|
||||
<ContentEditable bind:text={largeValue} />
|
||||
{#snippet template(args)}
|
||||
<ContentEditable bind:text={largeValue} {...args} />
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
<Story
|
||||
@@ -91,7 +97,9 @@ let longValue = $state(
|
||||
letterSpacing: 0.3,
|
||||
}}
|
||||
>
|
||||
<ContentEditable bind:text={spacedValue} />
|
||||
{#snippet template(args)}
|
||||
<ContentEditable bind:text={spacedValue} {...args} />
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
<Story
|
||||
@@ -103,5 +111,7 @@ let longValue = $state(
|
||||
letterSpacing: 0,
|
||||
}}
|
||||
>
|
||||
<ContentEditable bind:text={longValue} />
|
||||
{#snippet template(args)}
|
||||
<ContentEditable bind:text={longValue} {...args} />
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
Reference in New Issue
Block a user