Skip to content

Commit

Permalink
Official-storybook: Add DocsContainer as story decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Aug 20, 2019
1 parent 31141c9 commit f3af278
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/official-storybook/stories/addon-docs/mdx.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from 'react';
import { DocsContainer } from '@storybook/addon-docs/blocks';
import markdown from './markdown.stories.mdx';

export default {
title: 'Addons|Docs/mdx-in-story',
decorators: [storyFn => <DocsContainer context={{}}>{storyFn()}</DocsContainer>],
};

// This renders the contents of the docs panel into story content
Expand Down

0 comments on commit f3af278

Please sign in to comment.