-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 #28534 from storybookjs/docs-8-2-updates-latest
Docs: Updates for 8.2 features
- Loading branch information
Showing
44 changed files
with
963 additions
and
931 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
```js filename=".storybook/preview.js" renderer="common" language="js" | ||
import { init } from '../project-bootstrap'; | ||
|
||
export default { | ||
async beforeAll() { | ||
await init(); | ||
}, | ||
}; | ||
``` | ||
|
||
```ts filename=".storybook/preview.ts" renderer="common" language="ts" | ||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.) | ||
import { Preview } from '@storybook/your-renderer'; | ||
|
||
import { init } from '../project-bootstrap'; | ||
|
||
const preview: Preview = { | ||
async beforeAll() { | ||
await init(); | ||
}, | ||
}; | ||
|
||
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,24 @@ | ||
```js filename=".storybook/preview.js" renderer="common" language="js" | ||
import MockDate from 'mockdate'; | ||
|
||
export default { | ||
async beforeEach() { | ||
MockDate.reset() | ||
} | ||
}; | ||
``` | ||
|
||
```ts filename=".storybook/preview.ts" renderer="common" language="ts" | ||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.) | ||
import { Preview } from '@storybook/your-renderer'; | ||
import MockDate from 'mockdate'; | ||
|
||
const preview: Preview = { | ||
async beforeEach() { | ||
MockDate.reset() | ||
} | ||
}; | ||
|
||
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
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
Oops, something went wrong.