Skip to content

Commit

Permalink
Turn on autodocs for CSF with attached meta.
Browse files Browse the repository at this point in the history
For #20864
  • Loading branch information
tmeasday committed Feb 1, 2023
1 parent 187b02b commit 98d4ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/addons/docs/template/stories/docs2/MetaOf.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Story, Stories } from '@storybook/addon-docs';
import * as ButtonStories from './button.stories.ts';

<Meta of={ButtonStories} />
<Meta of={ButtonStories} name="MetaOf" />

# Docs with of

Expand Down
1 change: 1 addition & 0 deletions code/addons/docs/template/stories/docs2/button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { global as globalThis } from '@storybook/global';

export default {
component: globalThis.Components.Button,
tags: ['autodocs'],
args: { onClick: () => console.log('clicked!') },
parameters: {
chromatic: { disable: true },
Expand Down

0 comments on commit 98d4ba1

Please sign in to comment.