personal website
1"use client";
2
3import * as LabelPrimitive from "@radix-ui/react-label";
4import * as React from "react";
5
6import { cn } from "@/lib/utils";
7
8function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
9 return (
10 <LabelPrimitive.Root
11 data-slot="label"
12 className={cn(
13 "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
14 className,
15 )}
16 {...props}
17 />
18 );
19}
20
21export { Label };