UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

25 lines 1.01 kB
import { default as React } from 'react'; import { FieldStyleOverrides } from '../../Shell'; export interface TimeRange { start: Date | null; end: Date | null; } export interface TimeRangeProps { onChange?: (timeRange: TimeRange) => void; value?: TimeRange; startLabel?: string; endLabel?: string; helperText?: string; /** Error message rendered below the inputs; 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; } declare const TimeRangeComponent: React.FC<TimeRangeProps>; export default TimeRangeComponent; //# sourceMappingURL=index.d.ts.map