UNPKG

liber-salti

Version:

Saltí - Liber Design System

52 lines (51 loc) 1.19 kB
import { Moment } from 'moment'; export interface RangeDatePickerProps { /** * Callback fired when the value is changed. */ onChange: (e: unknown) => void; /** * The initial value for the start of the interval. */ startDate?: Moment; /** * The initial value for the end of the interval. */ endDate?: Moment; /** * Minimal selectable date. */ minDate?: Moment; /** * Maximal selectable date. */ maxDate?: Moment; /** * The title of the dialog component. */ dialogTitle: string; /** * If `true`, the input will use all the available width. */ fullWidth?: boolean; /** * The label of the input. */ label?: string; /** * The helper text of the input. */ helperText?: string; /** * If `true`, the end of the interval will be required. */ endRequired?: boolean; /** * If `true`, the start of the interval will be required. */ startRequired?: boolean; /** * If `true`, the input will show as required. */ required?: boolean; }