argTypes not passing to storys

Created on 29 January 2024, 5 months ago
Updated 20 February 2024, 4 months ago

I have a story

{% story icons with {
    name: "Icons",
    args: {
      theIcon: "twitter"
    }
  } %}

which works fine, but I would like a drop down list of a variety of icons I have. But when I use:

{% story icons with {
    name: "Icons",
    argTypes: {
      theIcon: {
         control: "select",
         options: ["twitter", "facebook", "oc"]
       }
    }
  } %}

The parameter gets set (?path=/story/a11ytalks-atoms--icons&args=theIcon:facebook") but the value is never set. Is this a limitation of twig? Or am I missing a step somewhere?

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Storybook

Created by

πŸ‡ΊπŸ‡ΈUnited States markie Albuquerque, NM

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024