mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
21 lines
419 B
Plaintext
21 lines
419 B
Plaintext
```ts
|
|
// YourComponent.stories.ts|tsx
|
|
|
|
// Replace your-framework with the name of your framework
|
|
import type { Meta } from '@storybook/your-framework';
|
|
|
|
import { YourComponent } from './YourComponent';
|
|
|
|
const meta: Meta<typeof YourComponent> = {
|
|
component: YourComponent,
|
|
argTypes: {
|
|
// foo is the property we want to remove from the UI
|
|
foo: {
|
|
control: false,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
```
|