storybook/docs/snippets/common/args-in-preview.ts-4-9.mdx
Kyle Gach 50a7d8581d Further updates
- Rename snippets to match naming schema
- Fix incorrect framing for example
- Add disclaimer that globals is probably a better option
2023-08-01 10:49:20 -06:00

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;
```