feat(core-ui): migrate atoms/molecules/templates from packages/ui
This commit is contained in:
1
packages/core-ui/src/atoms/label/index.ts
Normal file
1
packages/core-ui/src/atoms/label/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { Label, type LabelProps } from "./label";
|
||||
20
packages/core-ui/src/atoms/label/label.tsx
Normal file
20
packages/core-ui/src/atoms/label/label.tsx
Normal 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";
|
||||
Reference in New Issue
Block a user