code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

[Storybook] Support setting different props for differeant variants

Open SevenOutman opened this issue 1 year ago • 1 comments

Hey team, can we support setting different props for each variant, just like what we can do with figma.connect()?

Looks like it's currently hard-coded to use the same props https://github.com/figma/code-connect/blob/76c9fccca778977bbd4d58928ab76d1b601f789f/cli/src/storybook/convert.ts#L222-L226

SevenOutman avatar Aug 27 '24 15:08 SevenOutman

Hey, thanks for reporting, yeah this looks like a possible oversight. We'll look into it!

karlpetersson avatar Aug 29 '24 14:08 karlpetersson

This has been fixed on v1.3.0 - https://github.com/figma/code-connect/releases/tag/v1.3.0

islobodiuk-figma avatar Jan 30 '25 16:01 islobodiuk-figma