storybook/docs/snippets/angular/button-story-with-parameters.ts.mdx

19 lines
288 B
Plaintext

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