Spaces:
Paused
Paused
Download components/ui/label.tsx from Leon4gr45/paper2code-cli: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/ui/label.tsx
- Command line
-
hf download hf://spaces/Leon4gr45/paper2code-cli/components/ui/label.tsx
-
curl -L -o label.tsx https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/ui/label.tsx
568 Bytes
| import * as React from "react" | |
| 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< | |
| HTMLLabelElement, | |
| React.ComponentPropsWithoutRef<"label"> & | |
| VariantProps<typeof labelVariants> | |
| >(({ className, ...props }, ref) => ( | |
| <label | |
| ref={ref} | |
| className={cn(labelVariants(), className)} | |
| {...props} | |
| /> | |
| )) | |
| Label.displayName = "Label" | |
| export { Label } |