-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23665 from storybookjs/chore_docs_fix_args_snippets
Docs: Adds missing snippets args page (cherry picked from commit be7e95f)
- Loading branch information
1 parent
2f4a6e3
commit 93c833c
Showing
4 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```js | ||
// .storybook/preview.js | ||
|
||
export default { | ||
// The default value of the theme arg for all stories | ||
args: { theme: 'light' }, | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
```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; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
```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: Preview = { | ||
// The default value of the theme arg for all stories | ||
args: { theme: 'light' }, | ||
}; | ||
|
||
export default preview; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters