storybook/docs/snippets/common/component-story-sort-controls.mdx.mdx
2021-03-15 17:29:18 +08:00

12 lines
262 B
Plaintext

```md
<!--- YourComponent.stories.mdx -->
import { Meta } from '@storybook/addon-docs/blocks';
import { YourComponent } from './your-component'
<Meta
title='My Story'
component={YourComponent}
parameters={{ controls: { sort: 'requiredFirst' } }}
/>
```