Skip to content

Commit

Permalink
fix Canvas in template
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamwasp committed Nov 12, 2024
1 parent 771c571 commit 051237a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/styleguide/src/lib/Template/template.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Canvas, Controls, Meta, Story } from '@storybook/blocks';
import { Canvas, Controls, Meta } from '@storybook/blocks';

import { ComponentHeader } from '~styleguide/blocks';

Expand Down Expand Up @@ -69,9 +69,9 @@ Use the [variant 2 name] to [what it should be used for]

## Playground

<Canvas sourceState="shown">
<Story of={TemplateStories.Default} />
</Canvas>
If you are using a story named 'Default', you can forgo the `of` prop.

<Canvas sourceState="shown" of={TemplateStories.Default} />

<Controls />

Expand Down

0 comments on commit 051237a

Please sign in to comment.