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

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;
```