Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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