feat(Footnote): add component for footnote text

This commit is contained in:
Ilia Mashkov
2026-02-06 15:55:46 +03:00
parent a1080d3b34
commit 492c3573d0
3 changed files with 63 additions and 0 deletions
@@ -0,0 +1,31 @@
<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">
<Footnote>
Footnote
</Footnote>
</Story>
<Story name="With custom render">
<Footnote>
{#snippet render({ class: className })}
<span class={className}>Footnote</span>
{/snippet}
</Footnote>
</Story>