Skip to content

Commit

Permalink
Merge pull request #15533 from storybookjs/15510-example-mdx-embed-ob…
Browse files Browse the repository at this point in the history
…ject-story

Official-storybook: Add example of embedding story object in MDX
  • Loading branch information
shilman authored Jul 12, 2021
2 parents 1bd9907 + a0abeb3 commit 79950a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ WithArgs.args = { children: 'with args' };

export const WithTemplate = WithArgs.bind({});
WithTemplate.args = { children: 'with template' };

export const StoryObject = {
render: Basic,
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ I can define a story with the function imported from CSF:
<Canvas>
<Story name="with template" story={Csf.WithTemplate} />
</Canvas>

<Canvas>
<Story name="story object" story={Csf.StoryObject} />
</Canvas>

0 comments on commit 79950a9

Please sign in to comment.