storybook/docs/snippets/common/component-story-sort-controls.mdx.mdx
2021-05-07 11:51:52 +08:00

13 lines
256 B
Plaintext

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