Files
Minikura/apps/web/components/ui/label.tsx
T

22 lines
655 B
TypeScript
Raw Normal View History

2026-02-13 15:52:13 +07:00
"use client";
import * as LabelPrimitive from "@radix-ui/react-label";
2026-02-17 18:12:02 +07:00
import type * as React from "react";
2026-02-13 15:52:13 +07:00
2026-02-17 18:12:02 +07:00
import { cn } from "@/lib/cn";
2026-02-13 15:52:13 +07:00
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
data-slot="label"
className={cn(
2026-08-13 01:58:09 +07:00
"flex items-center gap-2 font-mono text-[10px] font-bold uppercase leading-none tracking-[0.08em] select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
2026-02-13 15:52:13 +07:00
className
)}
{...props}
/>
);
}
export { Label };