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

20 lines
365 B
Plaintext

```ts
// Button.stories.ts
import { Button } from './button.component';
export default {
component: Button,
//👇 Creates specific parameters for the story
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
{ name: 'blue', value: '#00f' },
],
},
},
};
```