Static types #213
Static types
#213
-
I see the Depending on how this is done, it might be useful to have something like: type HeadingVariantProps = {
weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black'
align?: 'left' | 'center' | 'right'
}
const headingVariants = cva<HeadingVariantProps>({...}) Is this possible, and advisable? Can you please provide an example? |
Beta Was this translation helpful? Give feedback.
Answered by
joe-bell
Jan 23, 2024
Replies: 3 comments
-
Completely agree, is this comming ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's not something I'm planning I'm afraid, my intent is to make |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joe-bell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not something I'm planning I'm afraid, my intent is to make
cva
the single source of truth for types; not something you can customise