Skip to content

When using multiple design links (ie an array), support merging with inherited array values #170

Open
@riotrah

Description

@riotrah

Is your feature request related to a problem? Please describe.
Apologies if the title is weird, not sure how else to describe in a one-liner. Basically, storybook allows parameterization at the story, component and global level (at least, I think).

I'd love to be able to have any permutation of a subset or whole of the following in their own design sub- abs:

  1. Define a global design embed for my org's Style Guide
    2. ie via preview.js
  2. Define a component level design embed for a particular, well, component
    4. ie via component-level parameters
  3. Finally, define a story-level embed ... as above etc

Realistically, I'm only ever gonna use (1.) and (3.) above, but others' usage patterns may vary.

Describe the solution you'd like
Currently we can always pass in an array to define multiple links - but it isn't clear from the source code or demo storybook instance that we can define, eg:

  1. within preview.js:
export const parameters = {
	design: [{ ... , inherit: true }]
}
  1. within some-story.jsx
...
.parameters = {
	design: [{ ... }]
}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Design types

this request is generalizable across all and any future types

  • figma
  • figspec
  • link
  • image
  • iframe

Additional context
Add any other context or screenshots about the feature request here.

Thanks for your wonderful work on this so far <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions