storybook/docs/_snippets/my-component-story-with-storyname.md
2024-11-17 16:46:37 +00:00

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: {},
};