mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 12:27:44 +00:00
21 lines
502 B
TypeScript
21 lines
502 B
TypeScript
"use client";
|
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
import { cva } from "class-variance-authority";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const labelVariants = cva(
|
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
);
|
|
|
|
const Label = ({ ref, className, ...props }) => (
|
|
<LabelPrimitive.Root
|
|
ref={ref}
|
|
className={cn(labelVariants(), className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
|
|
export { Label };
|