import { Field } from '@base-ui/react/field'; import { cn } from '#/lib/utils.js'; /** * One labelled text control. Field.Root binds label, control and validity * together and names the submitted value; validation is the constraint * attributes on the control itself. */ export function TextField({ className, name, label, hint, type = 'text', ...props }) { return ( {label} {hint &&
{hint}
}
); }