Closed lifeiscontent closed 1 year ago
import { cva } from 'class-variance-authority'; export const Button = cva( "default", { variants: { required: { Intent: { primary: "some", secondary: "thing", }, }, optional: {}, }, }, );
in the docs, it says to use required and optional but it doesn't seem to work when you have nested objects like the example above.
required
optional
Closing as this does not conform to the issue template
in the docs, it says to use
required
andoptional
but it doesn't seem to work when you have nested objects like the example above.