storybook/docs/snippets/angular/button-story-with-parameters.ts.mdx
2020-08-14 21:46:15 +01:00

18 lines
289 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', },
],
}
}
};
```