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
shilman committed Nov 30, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit f92139e

Please sign in to comment.