From a0abeb34d7d6227d32f27f7aa3e8f2a5dee35fcc Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 9 Jul 2021 14:35:52 +0800 Subject: [PATCH] Official-storybook: Add example of embedding story object in MDX --- .../stories/addon-docs/csf-with-mdx-docs.stories.js | 4 ++++ .../stories/addon-docs/csf-with-mdx-docs.stories.mdx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.js b/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.js index 7e88ab303f56..a64a24f19564 100644 --- a/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.js +++ b/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.js @@ -16,3 +16,7 @@ WithArgs.args = { children: 'with args' }; export const WithTemplate = WithArgs.bind({}); WithTemplate.args = { children: 'with template' }; + +export const StoryObject = { + render: Basic, +}; diff --git a/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.mdx b/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.mdx index 0caf20c72f58..a551c18a0ff3 100644 --- a/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.mdx +++ b/examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.mdx @@ -20,3 +20,7 @@ I can define a story with the function imported from CSF: + + + +