forked from fahrPool/fahrPool
22 lines
586 B
TypeScript
22 lines
586 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-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-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>
|
|
);
|
|
}
|