storybook/addons/docs/fixtures/decorators.mdx
Michael Shilman 783e56dcee MDX compiler
2019-06-19 10:25:34 +08:00

14 lines
295 B
Plaintext

import { Button } from '@storybook/react/demo';
import { Story, Meta } from '@storybook/addon-docs/blocks';
<Meta
title="Button"
decorators={[storyFn => <div style={{ backgroundColor: 'yellow' }}>{storyFn()}</div>]}
/>
# Decorated story
<Story name="one">
<Button>One</Button>
</Story>