mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 02:01:06 +08:00
20 lines
328 B
Plaintext
20 lines
328 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
import Button from './Button.svelte';
|
|
|
|
export default {
|
|
title: 'Button',
|
|
component: Button,
|
|
parameters: {
|
|
backgrounds: {
|
|
values: [
|
|
{ name: 'red', value: '#f00', },
|
|
{ name: 'green', value: '#0f0', },
|
|
{ name: 'blue', value: '#00f', },
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
``` |