mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
2.1 KiB
2.1 KiB
import type { Meta, StoryObj } from '@storybook/angular';
import { MyComponent } from './MyComponent.component';
const meta: Meta<Button> = {
component: MyComponent,
};
export default meta;
type Story = StoryObj<MyComponent>;
export const Simple: Story = {
decorators: [],
name: 'So simple!',
parameters: {},
};
import { MyComponent } from './MyComponent';
export default {
component: MyComponent,
};
export const Simple = {
decorators: [...],
name: 'So simple!',
parameters: {...},
}
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';
import { MyComponent } from './MyComponent';
const meta = {
component: MyComponent,
} satisfies Meta<typeof MyComponent>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Simple: Story = {
decorators: [],
name: 'So simple!',
parameters: {},
};
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';
import { MyComponent } from './MyComponent';
const meta: Meta<typeof MyComponent> = {
component: MyComponent,
};
export default meta;
type Story = StoryObj<typeof MyComponent>;
export const Simple: Story = {
decorators: [],
name: 'So simple!',
parameters: {},
};
export default {
component: 'my-component',
};
export const Simple = {
decorators: [],
name: 'So simple!',
parameters: {},
};
import type { Meta, StoryObj } from '@storybook/web-components';
const meta: Meta = {
component: 'my-component',
};
export default meta;
type Story = StoryObj;
export const Simple: Story = {
decorators: [],
name: 'So simple!',
parameters: {},
};