diff --git a/docs/_snippets/arg-types-in-story.md b/docs/_snippets/arg-types-in-story.md index 41508f9a65df..43ce951c112c 100644 --- a/docs/_snippets/arg-types-in-story.md +++ b/docs/_snippets/arg-types-in-story.md @@ -52,7 +52,7 @@ const meta = { export default meta; -type Story = StoryObj; +type Story = StoryObj; export const Basic = { argTypes: { @@ -126,4 +126,3 @@ export const Basic: Story = { }, }; ``` - diff --git a/docs/_snippets/button-group-story.md b/docs/_snippets/button-group-story.md index 14a3021bbabd..146034a60d12 100644 --- a/docs/_snippets/button-group-story.md +++ b/docs/_snippets/button-group-story.md @@ -175,28 +175,12 @@ export const Pair: Story = { - - - - ``` ```js filename="ButtonGroup.stories.js" renderer="svelte" language="js" tabTitle="CSF" @@ -232,28 +216,12 @@ export const Pair = { - - - - ``` ```ts filename="ButtonGroup.stories.ts" renderer="svelte" language="ts-4-9" tabTitle="CSF" @@ -294,28 +262,12 @@ export const Pair: Story = { - - - - ``` ```ts filename="ButtonGroup.stories.ts" renderer="svelte" language="ts" tabTitle="CSF" diff --git a/docs/_snippets/button-story-component-decorator.md b/docs/_snippets/button-story-component-decorator.md index 7ff333389d57..85ef46ff097f 100644 --- a/docs/_snippets/button-story-component-decorator.md +++ b/docs/_snippets/button-story-component-decorator.md @@ -199,7 +199,7 @@ export default meta; const { Story } = defineMeta({ component: Button, - decorators: [() => MarginDecorators], + decorators: [() => MarginDecorator], }); ``` @@ -223,7 +223,7 @@ export default { const { Story } = defineMeta({ component: Button, - decorators: [() => MarginDecorators], + decorators: [() => MarginDecorator], }); ``` @@ -251,9 +251,7 @@ export default meta; const { Story } = defineMeta({ component: Button, - decorators: [() => ({ - Component: MarginDecorator, - })], + decorators: [() => MarginDecorator], }); ``` diff --git a/docs/_snippets/button-story-using-args.md b/docs/_snippets/button-story-using-args.md index 5973b4acd0f0..97f33121e090 100644 --- a/docs/_snippets/button-story-using-args.md +++ b/docs/_snippets/button-story-using-args.md @@ -336,7 +336,7 @@ export const Tertiary: Story = { args={{ backgroundColor: '#ff0', label: 'πŸ˜„πŸ‘πŸ˜πŸ’―', - }} + }} /> - import { defineMeta } from '@storybook/addon-svelte-csf'; + import { defineMeta } from '@storybook/addon-svelte-csf'; import Button from './Button.svelte'; @@ -344,7 +344,7 @@ export const Tertiary = { ```svelte filename="Button.stories.svelte" renderer="svelte" language="ts-4-9" tabTitle="Svelte CSF" - - +