import type { VariantProps } from "class-variance-authority"
import { cva } from "class-variance-authority"

export { default as Label } from "./Label.vue"

export const labelVariants = cva(
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
  {
    variants: {
      required: {
        true: "after:ml-0.5 after:text-destructive after:content-['*']",
        false: "",
      },
    },
    defaultVariants: {
      required: false,
    },
  },
)

export type LabelVariants = VariantProps<typeof labelVariants>
