goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
28 lines • 1.09 kB
TypeScript
import { default as React } from 'react';
import { FieldStyleOverrides } from '../../Shell';
export interface DateFieldProps {
label?: string;
value?: Date | null;
onChange: (date: Date | null) => void;
variant?: string;
disableFutureDateValidation?: boolean;
placeholder?: 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;
/** HTML-style field name. Alias for dataFieldName so the test contract can target the field by either; data-field-name is emitted from dataFieldName ?? name. */
name?: string;
styles?: FieldStyleOverrides & {
height?: string;
fontSize?: string;
borderRadius?: string;
padding?: string;
};
}
declare const DateField: React.FC<DateFieldProps>;
export default DateField;
//# sourceMappingURL=index.d.ts.map