Skip to content

how to use this as a global doc block? #88

Answered by pocka
BartJanvanAssen asked this question in Q&A
Discussion options

You must be logged in to vote

The purpose of the Design Block is to remove the need for the duplicated config between story parameters and Docs Page.
For non-story-specific usage, what you want is the Figma Block.

addParameters({
  docs: {
    page: () => (
      <>
        <Figma  url="https://www.figma.com/embed?embed_host=share&url=https%3A%..." />
        <Title />
        <Subtitle />
        <Description />
        <Primary />
        <ArgsTable story={PRIMARY_STORY} />
        <Stories />
      </>
    )
  }
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pocka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants