mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
22 lines
421 B
Plaintext
22 lines
421 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import { Meta } from '@storybook/angular/types-6-0';
|
|
|
|
import Button from './button.component';
|
|
|
|
export default {
|
|
title: 'Button',
|
|
//👇 Creates specific parameters for the story
|
|
parameters: {
|
|
backgrounds: {
|
|
values: [
|
|
{ name: 'red', value: '#f00' },
|
|
{ name: 'green', value: '#0f0' },
|
|
{ name: 'blue', value: '#00f' },
|
|
],
|
|
},
|
|
},
|
|
} as Meta;
|
|
```
|