setup: shadcn/ui components + type definitions + mock data layer

This commit is contained in:
zetaloop
2026-02-20 13:27:02 +08:00
parent 3093da1665
commit 02cd8a23df
27 changed files with 2636 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
"use client"
import { Label as LabelPrimitive } from "radix-ui"
import type * as React from "react"
import { cn } from "@/lib/utils"
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
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",
className,
)}
{...props}
/>
)
}
export { Label }