label.jsx 558 B

1234567891011121314151617181920212223
  1. "use client"
  2. import * as React from "react"
  3. import * as LabelPrimitive from "@radix-ui/react-label"
  4. import { cn } from "@/lib/utils"
  5. function Label({
  6. className,
  7. ...props
  8. }) {
  9. return (
  10. <LabelPrimitive.Root
  11. data-slot="label"
  12. className={cn(
  13. "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
  14. className
  15. )}
  16. {...props} />
  17. );
  18. }
  19. export { Label }