Skip to content

Commit

Permalink
rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
rossedfort committed Dec 3, 2024
1 parent 50d11b5 commit 99b67d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<script lang="ts" context="module">
import type { Meta } from '@storybook/svelte';
import Collapsible from './collapsible.svelte';
import CollapsibleDivider from './collapsible-divider.svelte';
export const meta = {
title: 'Collapsible',
component: Collapsible,
title: 'Collapsible Divider',
component: CollapsibleDivider,
args: {
label: 'Expand me',
},
argTypes: {
label: { name: 'Label', control: 'text' },
},
} satisfies Meta<Collapsible>;
} satisfies Meta<CollapsibleDivider>;
</script>

<script lang="ts">
import { Story, Template } from '@storybook/addon-svelte-csf';
</script>

<Template let:args>
<Collapsible label={args.label}>
<CollapsibleDivider label={args.label}>
<p>This is the content</p>
</Collapsible>
</CollapsibleDivider>
</Template>

<Story name="Default" />

0 comments on commit 99b67d1

Please sign in to comment.