mirror of
https://github.com/openshiporg/openship.git
synced 2026-06-19 07:35:55 +00:00
27b0227134
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
624 B
TypeScript
26 lines
624 B
TypeScript
import * as React from "react"
|
|
import { Label } from "@/components/ui/label"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
interface FieldLabelProps extends React.ComponentProps<typeof Label> {
|
|
children: React.ReactNode
|
|
}
|
|
|
|
const FieldLabel = React.forwardRef<HTMLLabelElement, FieldLabelProps>(
|
|
({ className, children, ...props }, ref) => {
|
|
return (
|
|
<div className="mb-1">
|
|
<Label
|
|
ref={ref}
|
|
className={cn("text-sm font-medium", className)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</Label>
|
|
</div>
|
|
)
|
|
}
|
|
)
|
|
FieldLabel.displayName = "FieldLabel"
|
|
|
|
export { FieldLabel }
|