mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
20 lines
378 B
Plaintext
20 lines
378 B
Plaintext
```ts
|
|
// .storybook/preview.ts
|
|
|
|
// Replace your-framework with the framework you are using (e.g., react, vue3)
|
|
import { Preview } from '@storybook/your-framework';
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
backgrounds: {
|
|
values: [
|
|
{ name: 'red', value: '#f00' },
|
|
{ name: 'green', value: '#0f0' },
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default preview;
|
|
```
|