mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 06:31:27 +08:00
1.8 KiB
1.8 KiB
import type { Meta } from '@storybook/angular';
import { Button } from './button.component';
const meta: Meta<Button> = {
component: Button,
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
};
import { Button } from './Button';
export default {
component: Button,
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
};
// Replace your-framework with the name of your framework
import type { Meta } from '@storybook/your-framework';
import { Button } from './Button';
const meta = {
component: Button,
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
} 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,
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
};
export default meta;
export default {
component: 'demo-button',
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
};
import type { Meta } from '@storybook/web-components';
const meta: Meta = {
component: 'demo-button',
// Sets the layout parameter component wide.
parameters: {
layout: 'centered',
},
};
export default meta;