feat(Footnote): add component for footnote text
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user