Download apps/vscode/webview-ui/src/components/ui/label.tsx from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vscode/webview-ui/src/components/ui/label.tsx
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vscode/webview-ui/src/components/ui/label.tsx
-
curl -L -o label.tsx https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vscode/webview-ui/src/components/ui/label.tsx
609 Bytes
| "use client"; | |
| import * as React from "react"; | |
| import { Label as LabelPrimitive } from "radix-ui"; | |
| import { cn } from "@/lib/utils"; | |
| function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) { | |
| return ( | |
| <LabelPrimitive.Root | |
| data-slot="label" | |
| className={cn( | |
| "gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed", | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| export { Label }; | |