Preview
Install
bunx shadcn@latest add https://ui.trypacked.dev/r/label.json
Source
components/ui/label.tsx
"use client";
import type * as React from "react";
import { cn } from "@/registry/lib/utils";
function Label({ className, ...props }: React.ComponentProps<"label">) {
return (
<label
data-slot="label"
className={cn(
"flex items-center gap-2 font-sans text-sm leading-none font-medium text-strong 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 };
Registry dependencies
- @packed/utils
Files
- registry/ui/label.tsx → components/ui/label.tsx