diff options
| author | 2026-02-22 19:47:13 +0800 | |
|---|---|---|
| committer | 2026-02-22 19:47:13 +0800 | |
| commit | 01b546cc816c4fb6b7389e5122b7802d7e724a2b (patch) | |
| tree | b33e71dc81c60a6678e6fb14f736713bd94bd5dc /packages/ui-new/src/components/ui/label.tsx | |
| parent | 1a103de2f1ef75cd73347953cbe27e14606df871 (diff) | |
| download | DropOut-01b546cc816c4fb6b7389e5122b7802d7e724a2b.tar.gz DropOut-01b546cc816c4fb6b7389e5122b7802d7e724a2b.zip | |
refactor(shadcn): use base lyra instead
Diffstat (limited to 'packages/ui-new/src/components/ui/label.tsx')
| -rw-r--r-- | packages/ui-new/src/components/ui/label.tsx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/ui-new/src/components/ui/label.tsx b/packages/ui-new/src/components/ui/label.tsx index a3661df..9a998c7 100644 --- a/packages/ui-new/src/components/ui/label.tsx +++ b/packages/ui-new/src/components/ui/label.tsx @@ -1,19 +1,14 @@ -"use client"; - -import * as LabelPrimitive from "@radix-ui/react-label"; import type * as React from "react"; import { cn } from "@/lib/utils"; -function Label({ - className, - ...props -}: React.ComponentProps<typeof LabelPrimitive.Root>) { +function Label({ className, ...props }: React.ComponentProps<"label">) { return ( - <LabelPrimitive.Root + // biome-ignore lint/a11y/noLabelWithoutControl: shadcn component + <label data-slot="label" className={cn( - "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", + "gap-2 text-xs leading-none group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed", className, )} {...props} |