created:1/14/2022
updated:1/14/2022
Playground
playground.mdx
---name: Playgroundmenu: Components---import { Playground } from '@component-controls/blocks';
0
You can wrap the example code in a
<Story />
component - this will give you an identifier (story id) to reference this specific example of code.playground.mdx
---name: Playgroundmenu: Components---import { Playground, Story } from '@component-controls/blocks';import { Button } from '../src/components/Button'# Button<Playground><Story name='example'><Button kind="secondary">Click me</Button></Story></Playground>