feat(core-ui): migrate atoms/molecules/templates from packages/ui

This commit is contained in:
2026-05-05 09:10:45 +02:00
parent 1f0a6e73bf
commit a7d37d8a0f
19 changed files with 249 additions and 2 deletions

View File

@@ -0,0 +1 @@
export { Label, type LabelProps } from "./label";

View File

@@ -0,0 +1,20 @@
import { forwardRef, type LabelHTMLAttributes } from "react";
import { cn } from "../../lib/utils";
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {}
export const Label = forwardRef<HTMLLabelElement, LabelProps>(
({ className, ...props }, ref) => {
return (
<label
className={cn(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
className
)}
ref={ref}
{...props}
/>
);
}
);
Label.displayName = "Label";