Skip to content

Support for story parameters #71

@FrozenKiwi

Description

@FrozenKiwi

Hey, first, thanks for this awesome plugin!

I'm trying to integrate the figma design plugin though, and it doesn't appear the parameters object is being picked up? For comparison

const meta: Meta<typeof Button> = {
  title: 'Example/Button',
  component: Button,
  parameters: {
    design: {
      type: 'figma',
      url: '<tofigma>',
    }
  }
};

Correctly loads our designs in the design tab

<script>
const parameters = {
  design: {
    type: 'figma',
    url: '<tofigma>',
  }
}
</script>
  <Stories
    title="Example/Button2"
    :component="Button"
    :parameters="parameters" // <-- Not here
  >
    <Story
      title="PrimarySS"
      :parameters="parameters" // <-- nor here
    >
      <Button
        label="Button"
        :parameters="parameters" // really speculative now
      >
        Primary
      </Button>
    </Story>

I haven't dug much into the compilation process, but I was hoping/assuming that anything passed to Story would be passed through to the output.

Any thoughts on this? With a few pointers I wouldn't mind taking a crack at this if it's unsupported ATM

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wantedGood idea, but the core developers will not work on it at the momenttype: enhancementImproving upon an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions