mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
Add auto-description example for docspage
This commit is contained in:
parent
2eaecdb2b7
commit
d8dc4291a3
17
code/addons/docs/template/stories/docspage/extract-description.stories.ts
vendored
Normal file
17
code/addons/docs/template/stories/docspage/extract-description.stories.ts
vendored
Normal 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 = {};
|
Loading…
x
Reference in New Issue
Block a user