API reference: @salmonui/calendars/date-range-picker
DateRangePresetinterface
import type { DateRangePreset } from '@salmonui/calendars/date-range-picker';interface DateRangePreset {
readonly label: ReactNode;
readonly value: DateRange<DateInput> | (() => DateRange<DateInput>);
}
A preset range. Function values are evaluated when the popup opens.
| Name | Signature | Description |
|---|---|---|
label | readonly label: ReactNode; | |
value | readonly value: DateRange<DateInput> | (() => DateRange<DateInput>); |