storybook/docs/snippets/common/component-story-disable-controls.ts.mdx
2023-05-25 21:04:33 +01:00

23 lines
444 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: {
table: {
disable: true,
},
},
},
};
export default meta;
```