mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
18 lines
496 B
JavaScript
18 lines
496 B
JavaScript
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>],
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
},
|
|
};
|
|
|
|
// This renders the contents of the docs panel into story content
|
|
export const Typography = () => {
|
|
const Docs = markdown.parameters.docs.page;
|
|
return <Docs />;
|
|
};
|