mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-01 16:46:36 +08:00
20 lines
478 B
TypeScript
20 lines
478 B
TypeScript
import * as React from "react";
|
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
|
|
return (
|
|
<LabelPrimitive.Root
|
|
className={cn(
|
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
className,
|
|
)}
|
|
data-slot="label"
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Label };
|