mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
- Rename snippets to match naming schema - Fix incorrect framing for example - Add disclaimer that globals is probably a better option
14 lines
329 B
Plaintext
14 lines
329 B
Plaintext
```ts
|
|
// .storybook/preview.ts
|
|
|
|
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.)
|
|
import { Preview } from '@storybook/your-renderer';
|
|
|
|
const preview = {
|
|
// The default value of the theme arg for all stories
|
|
args: { theme: 'light' },
|
|
} satisfies Preview;
|
|
|
|
export default preview;
|
|
```
|