mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 06:41:11 +08:00
1.9 KiB
1.9 KiB
import type { Meta } from '@storybook/angular';
import { Button } from './button.component';
const meta: Meta<Button> = {
component: Button,
parameters: {
docs: {
controls: { exclude: ['style'] },
},
},
};
export default meta;
import { Button } from './Button';
export default {
component: Button,
parameters: {
docs: {
controls: { exclude: ['style'] },
},
},
};
// Replace your-framework with the name of your framework
import type { Meta } from '@storybook/your-framework';
import { Button } from './Button';
const meta = {
component: Button,
parameters: {
docs: {
controls: { exclude: ['style'] },
},
},
} satisfies Meta<typeof Button>;
export default meta;
// Replace your-framework with the name of your framework
import type { Meta } from '@storybook/your-framework';
import { Button } from './Button';
const meta: Meta<typeof Button> = {
component: Button,
parameters: {
docs: {
controls: { exclude: ['style'] },
},
},
};
export default meta;
export default {
title: 'Button',
component: 'demo-button',
};
export const Basic = {
parameters: {
docs: {
canvas: { sourceState: 'shown' },
},
},
};
import type { Meta } from '@storybook/web-components';
const meta: Meta = {
title: 'Button',
component: 'demo-button',
parameters: {
docs: {
controls: { exclude: ['style'] },
},
},
};
export default meta;