storybook/docs/snippets/angular/your-component.ts.mdx
2022-11-17 16:32:01 +01:00

27 lines
683 B
Plaintext

```ts
// YourComponent.stories.ts
import type { Meta, StoryObj } from '@storybook/angular';
import { YourComponent } from './your.component';
//👇 This default export determines where your story goes in the story list
const meta: Meta<YourComponent> = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/angular/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'YourComponent',
component: YourComponent,
};
export default meta;
type Story = StoryObj<YourComponent>;
export const FirstStory: Story = {
args: {
//👇 The args you need here will depend on your component
},
};
```