goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
24 lines • 963 B
TypeScript
import { default as React } from 'react';
import { FieldStyleOverrides } from '../../Shell';
export interface TimeFieldProps {
onChange?: (time: Date | null) => void;
value?: Date | null;
label?: string;
helperText?: string;
/** Error message rendered below the input; sets aria-invalid. */
error?: string | boolean;
/** Stable test selector — emitted as `data-field` on the wrapper. */
dataField?: string;
/** Stable test selector — emitted as `data-field-name` on the wrapper. */
dataFieldName?: string;
/**
* Form-engine binding key. When set inside a `<Form>` and no explicit
* `value` is passed, value/onChange come from the form engine; the shell
* also derives error/required for this field. Inert outside a `<Form>`.
*/
name?: string;
styles?: FieldStyleOverrides;
}
declare const TimeField: React.FC<TimeFieldProps>;
export default TimeField;
//# sourceMappingURL=index.d.ts.map