mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
18 lines
421 B
TypeScript
18 lines
421 B
TypeScript
"use client";
|
|
|
|
import { ComponentProps } from "react";
|
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
|
|
import { cn } from "@/lib/style";
|
|
|
|
export const Label = ({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>) => (
|
|
<LabelPrimitive.Root
|
|
className={cn(
|
|
"leading-none",
|
|
"peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|