storybook/docs/snippets/react/button-story-with-emojis.mdx.mdx

23 lines
583 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Button } from './Button';
<Meta title="Components/Button" component={Button}/>
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
<Story
name="Primary"
render={() => <Button background="#ff0" label="Button" />} />
<Story
name="Secondary"
render={() => <Button background="#ff0" label="😄👍😍💯" />} />
<Story
name="Tertiary"
render={() => <Button background="#ff0" label="📚📕📈🤓" />} />
```