Migrate UI primitives from Radix to Base UI.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
2026-07-17 18:31:07 +02:00
co-authored by Cursor
parent 90cff7e5d5
commit 25f01b61b3
18 changed files with 510 additions and 846 deletions
+2 -6
View File
@@ -1,16 +1,12 @@
"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
<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",