storybook/docs/snippets/angular/your-component.ts.mdx

22 lines
513 B
Plaintext

```ts
// YourComponent.stories.tsx
import { Meta, moduleMetadata, Story } from '@storybook/angular';
import { YourComponent } from './your.component';
// This default export determines where your story goes in the story list
export default {
title: 'YourComponent',
component: YourComponent,
} as Meta;
const Template: Story<YourComponent> = (args) => ({
props: args,
});
export const YourStory = Template.bind({});
YourStory.args = {
/* the args you need here will depend on your component */
};
```