import React from 'react';
import notes from '../notes/notes.md';
import mdxNotes from '../notes/notes.mdx';
import { DocgenButton } from '../../components/DocgenButton';
const docsTitle = title => `Docs/${title}`;
export default {
title: `Addons/${docsTitle('stories')}`,
component: DocgenButton,
};
export const Basic = () =>
Click docs tab to see basic docs
;
export const NoDocs = () => Click docs tab to see no docs error
;
NoDocs.story = {
name: 'no docs',
parameters: { docs: { page: null } },
};
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: { page: mdxNotes },
},
};
export const JsxOverride = () => Click docs tab to see JSX-overridden docs
;
JsxOverride.story = {
name: 'jsx override',
parameters: {
docs: { page: () => Hello docs
},
},
};
export const DocsDisable = () => This story shouldn't show up in DocsPage
;
DocsDisable.story = {
parameters: {
docs: { disable: true },
},
};
export const LargerThanPreview = () => HUGE
;