import React from 'react'; import notes from './notes/notes.md'; import mdxNotes from './notes/notes.mdx'; import DocgenButton from '../components/DocgenButton'; export default { title: 'Addons|Docs/stories', parameters: { component: DocgenButton, }, }; export const basic = () =>
Click docs tab to see basic docs
; export const withNotes = () =>
Click docs tab to see DocsPage docs
; withNotes.story = { name: 'with notes', parameters: { notes }, }; export const withInfo = () =>
Click docs tab to see DocsPage docs
; withInfo.story = { name: 'with info', parameters: { info: 'some user info string', }, }; export const mdxOverride = () =>
Click docs tab to see MDX-overridden docs
; mdxOverride.story = { name: 'mdx override', parameters: { docs: mdxNotes, }, }; export const jsxOverride = () =>
Click docs tab to see JSX-overridden docs
; jsxOverride.story = { name: 'jsx override', parameters: { docs: () =>
Hello docs
, }, };