2025-09-20 00:09:00 +08:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import * as React from "react";
|
|
|
|
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
|
|
|
|
2025-10-22 15:12:59 +08:00
|
|
|
import { cn } from "@/shared/utils/utils";
|
2025-09-20 00:09:00 +08:00
|
|
|
|
|
|
|
|
function Label({
|
|
|
|
|
className,
|
|
|
|
|
...props
|
|
|
|
|
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
|
|
|
|
|
return (
|
|
|
|
|
<LabelPrimitive.Root
|
|
|
|
|
data-slot="label"
|
|
|
|
|
className={cn(
|
2025-12-18 19:57:43 +08:00
|
|
|
"flex items-center gap-2 text-base leading-none font-mono font-semibold text-foreground/80 uppercase tracking-wider select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
2025-09-20 00:09:00 +08:00
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { Label };
|