UNPKG

rsuite

Version:

A suite of react components

30 lines (29 loc) 1.17 kB
import React from 'react'; import { InputProps } from '../Input'; import { FormControlBaseProps } from '../internals/types'; type ValueType = [Date | null, Date | null] | null; export interface DateRangeInputProps extends Omit<InputProps, 'value' | 'onChange' | 'defaultValue'>, FormControlBaseProps<ValueType> { /** * The character between the start and end dates. * @default ' ~ ' **/ character?: string; /** * Format of the date when rendered in the input. Format of the string is based on Unicode Technical Standard. * * @see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table * @default 'yyyy-MM-dd' **/ format?: string; /** * The `placeholder` prop defines the text displayed in a form control when the control has no value. */ placeholder?: string; } /** * The DateRangeInput component lets users select a date with the keyboard. * @version 5.59.0 * @see https://rsuitejs.com/components/date-range-input/ */ declare const DateRangeInput: React.ForwardRefExoticComponent<DateRangeInputProps & React.RefAttributes<unknown>>; export default DateRangeInput;