Skip to main content

Variable: buttonVariants()

const buttonVariants: (props?) => string

Defined in: lib/base/Button.tsx:44

Creates a class variance authority (cva) instance for button styling. Combines base styles with variant and size configurations.

Parameters

props?

ConfigVariants<{ readonly variant: { readonly default: "bg-primary web:hover:opacity-90 active:opacity-90"; readonly destructive: "bg-destructive web:hover:opacity-90 active:opacity-90 border-destructive-darker border-2"; readonly secondary: "border-2 border-secondary-darker bg-secondary web:hover:opacity-80 active:...

Returns

string