storybook/docs/snippets/angular/button-story-with-parameters.ts.mdx
2021-09-03 23:31:04 +01:00

18 lines
273 B
Plaintext

```ts
// Button.stories.ts
import { Button } from './button.component';
export default {
component: Button,
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
],
},
},
};
```