metis-desk/packages/shadcn-ui/src/components/label.tsx
David e3f92fa534 feat: initialize pnpm workspace and add configuration files
- Added pnpm-workspace.yaml to define package structure.
- Created prepare-local-env.py script for local environment setup.
- Introduced tsconfig.json for TypeScript configuration.
- Added turbo.json for task management with Turbo.
2026-10-03 12:36:03 +02:00

21 lines
575 B
TypeScript

import { cn } from "cn";
import type * as React from "react";
function Label({ className, htmlFor, children, ...props }: React.ComponentProps<"label">) {
return (
<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
)}
data-slot="label"
htmlFor={htmlFor}
{...props}
>
{children}
</label>
);
}
export { Label };