-
-
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.
- Rename snippets to match naming schema - Fix incorrect framing for example - Add disclaimer that globals is probably a better option
- Loading branch information
Showing
6 changed files
with
43 additions
and
30 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; | ||
``` |
11 changes: 0 additions & 11 deletions
11
docs/snippets/common/button-story-project-args-theme.js.mdx
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
docs/snippets/common/button-story-project-args-theme.ts.mdx
This file was deleted.
Oops, something went wrong.
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