Replies: 1 comment 1 reply
-
Tried this, didn't work type WithoutUndefined<T> = {
[P in keyof T]?: T[P];
};
type ButtonVariantProps = WithoutUndefined<{
variant: "outline" | "solid";
size: "medium" | "large";
shape: "rounded" | "pill" | "square";
}>; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When I use below to export types
Output is
and storybook doesn't render controls

But when I pass the types like below
Storybook renders the controls correctly

I was just following this tutorial
https://www.youtube.com/watch?v=KgcSZednCmk
Link to Reproduction
https://www.youtube.com/watch?v=KgcSZednCmk
Steps to reproduce
JS Framework
React (TS)
Panda CSS Version
0.44.0
Browser
Version 127.0.6533.89 (Official Build) (arm64)
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions