storybook/docs/snippets/angular/my-component-story-basic-and-props.ts.mdx
2021-09-03 23:31:04 +01:00

20 lines
261 B
Plaintext

```ts
// MyComponent.stories.ts
import { MyComponent } from './MyComponent.component';
export default {
component: MyComponent,
};
export const Basic = {};
export const WithProp = {
render: () => ({
props: {
prop: 'value',
},
}),
};
```