storybook/docs/snippets/angular/button-story-with-parameters.ts.mdx
2021-01-30 17:42:31 +00:00

21 lines
350 B
Plaintext

```ts
// Button.stories.ts
import { Meta } from '@storybook/angular/types-6-0';
import Button from './button.component';
export default {
title: 'Button',
component: Button,
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
],
},
},
} as Meta;
```