storybook/docs/snippets/common/component-story-sort-controls.mdx.mdx
2021-05-06 21:05:56 +01:00

13 lines
263 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' } }}
/>
```