mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
MIGRATE addon-docs documentation to triconfig
This commit is contained in:
parent
8a76b43e2e
commit
694f09cf6d
@ -225,7 +225,7 @@ You can replace DocsPage at any level by overriding the `docs.page` parameter:
|
||||
- [With MDX](./recipes.md#csf-stories-with-mdx-docs) docs
|
||||
- With a custom React component
|
||||
|
||||
**Globally (config.js)**
|
||||
**Globally (preview.js)**
|
||||
|
||||
```js
|
||||
import { addParameters } from '@storybook/react';
|
||||
|
@ -165,7 +165,7 @@ To add [decorators](https://github.com/storybookjs/storybook/blob/next/docs/src/
|
||||
</Story>
|
||||
```
|
||||
|
||||
In addition, global decorators work just like before, e.g. adding the following to your `.storybook/config.js`:
|
||||
In addition, global decorators work just like before, e.g. adding the following to your `.storybook/preview.js`:
|
||||
|
||||
```js
|
||||
import { addDecorator, addParameters } from '@storybook/react';
|
||||
|
Loading…
x
Reference in New Issue
Block a user