diff options
Diffstat (limited to 'packages/web/components/ui/label.tsx')
| -rw-r--r-- | packages/web/components/ui/label.tsx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/web/components/ui/label.tsx b/packages/web/components/ui/label.tsx deleted file mode 100644 index 84f8b0c7..00000000 --- a/packages/web/components/ui/label.tsx +++ /dev/null @@ -1,26 +0,0 @@ -"use client"; - -import * as React from "react"; -import * as LabelPrimitive from "@radix-ui/react-label"; -import { cva, type VariantProps } from "class-variance-authority"; - -import { cn } from "@/lib/utils"; - -const labelVariants = cva( - "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", -); - -const Label = React.forwardRef< - React.ElementRef<typeof LabelPrimitive.Root>, - React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & - VariantProps<typeof labelVariants> ->(({ className, ...props }, ref) => ( - <LabelPrimitive.Root - ref={ref} - className={cn(labelVariants(), className)} - {...props} - /> -)); -Label.displayName = LabelPrimitive.Root.displayName; - -export { Label }; |
