forked from fahrPool/fahrPool
22 lines
530 B
TypeScript
22 lines
530 B
TypeScript
export const FIELD_CLASSES =
|
|
"min-h-11 w-full rounded-md border border-aluminium-grey px-3 py-2 text-base text-asphalt-grey focus:outline-none focus:ring-2 focus:ring-performance-blue";
|
|
|
|
export function FormField({
|
|
label,
|
|
htmlFor,
|
|
children,
|
|
}: {
|
|
label: string;
|
|
htmlFor: string;
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="mb-4 flex flex-col gap-1">
|
|
<label htmlFor={htmlFor} className="text-sm font-medium text-asphalt-grey">
|
|
{label}
|
|
</label>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|