Add auto-description example for docspage

This commit is contained in:
Michael Shilman 2022-09-11 17:04:40 +08:00
parent 2eaecdb2b7
commit d8dc4291a3

View File

@ -0,0 +1,17 @@
import globalThis from 'global';
export default {
component: globalThis.Components.Button,
args: { children: 'Click Me!' },
parameters: {
docs: {
// FIXME: this is typically provided by the renderer preset to extract
// the description automatically based on docgen info. including here
// for documentation purposes only.
extractComponentDescription: () => 'component description',
},
chromatic: { disable: true },
},
};
export const Basic = {};