Include figma block automatically on docs page #130
Unanswered
manuelmeister
asked this question in
Q&A
Replies: 1 comment
-
You can modify the default Docs Page by remixing. // I haven't tested this code, might not work
import { Design } from "storybook-addon-designs/blocks";
// ...
parameters: {
docs: {
page: () => (
<>
<Title />
<Subtitle />
<Description />
<Primary />
<ArgsTable story={PRIMARY_STORY} />
<Design storyId={PRIMARY_STORY} />
<Stories />
</>
),
},
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I show the figma block automatically on the docs page if the design param is set on the default export or the story?
I would want it collapsed so it doesn't load until someone cares.
P.S. Such a cool addon! :)
Beta Was this translation helpful? Give feedback.
All reactions