2026-02-06 15:55:46 +03:00
|
|
|
<script module>
|
|
|
|
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
|
|
|
import Footnote from './Footnote.svelte';
|
|
|
|
|
|
|
|
|
|
const { Story } = defineMeta({
|
|
|
|
|
title: 'Shared/Footnote',
|
|
|
|
|
tags: ['autodocs'],
|
|
|
|
|
parameters: {
|
|
|
|
|
docs: {
|
|
|
|
|
description: {
|
|
|
|
|
component: 'Styles footnote text',
|
|
|
|
|
},
|
|
|
|
|
story: { inline: false }, // Render stories in iframe for state isolation
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<Story name="Default">
|
2026-02-22 11:25:02 +03:00
|
|
|
{#snippet template(args)}
|
|
|
|
|
<Footnote {...args}>
|
|
|
|
|
Footnote
|
|
|
|
|
</Footnote>
|
|
|
|
|
{/snippet}
|
2026-02-06 15:55:46 +03:00
|
|
|
</Story>
|
|
|
|
|
|
|
|
|
|
<Story name="With custom render">
|
2026-02-22 11:25:02 +03:00
|
|
|
{#snippet template(args)}
|
|
|
|
|
<Footnote {...args}>
|
|
|
|
|
{#snippet render({ class: className })}
|
|
|
|
|
<span class={className}>Footnote</span>
|
|
|
|
|
{/snippet}
|
|
|
|
|
</Footnote>
|
|
|
|
|
{/snippet}
|
2026-02-06 15:55:46 +03:00
|
|
|
</Story>
|