mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:01:53 +08:00
22 lines
408 B
Plaintext
22 lines
408 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
component: 'demo-button',
|
|
//👇 Creates specific parameters for the story
|
|
parameters: {
|
|
backgrounds: {
|
|
values: [
|
|
{ name: 'red', value: '#f00' },
|
|
{ name: 'green', value: '#0f0' },
|
|
{ name: 'blue', value: '#00f' },
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
```
|