Skip to content

Commit

Permalink
Added docs to show how to override SB block when using MDX (#8992)
Browse files Browse the repository at this point in the history
Added docs to show how to override SB block when using MDX
  • Loading branch information
shilman committed Nov 30, 2019
1 parent df49714 commit f92139e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions addons/docs/docs/theming.md
Expand Up @@ -60,6 +60,22 @@ addParameters({
});
```

You can even override a Storybook *block* component.

Here's how you might insert a custom `<Preview />` block:

```js
import { MyPreview } from './MyPreview';

addParameters({
docs: {
components: {
Preview: MyPreview,
},
},
});
```

## More resources

Want to learn more? Here are some more articles on Storybook Docs:
Expand Down

0 comments on commit f92139e

Please sign in to comment.