22 lines
407 B
TypeScript
22 lines
407 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./label.module.css"
|
|
|
|
export const labelVariants = cva(styles.label, {
|
|
variants: {
|
|
size: {
|
|
small: styles.small,
|
|
regular: styles.regular,
|
|
discreet: styles.discreet,
|
|
},
|
|
required: {
|
|
true: styles.required,
|
|
false: "",
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
size: "regular",
|
|
required: false,
|
|
},
|
|
})
|