storybook/docs/snippets/common/component-story-sort-controls.mdx.mdx

16 lines
274 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',
}
}} />
```