Components
Date Picker
A date picker enables users to select a single date or range of dates in order to filter data for a particular time period.
Single date picker
import { SingleDatePicker } from '@sproutsocial/racine'
Properties
Name | Type | Default | Description | Required? |
---|---|---|---|---|
date | ?moment$Moment | |||
onDateChange | (date: moment$Moment) => void | |||
focused | boolean | |||
onFocusChange | ({ focused: boolean }) => void |
Date range picker
import { DateRangePicker } from '@sproutsocial/racine'
Properties
Name | Type | Default | Description | Required? |
---|---|---|---|---|
startDate | ?moment$Moment | |||
endDate | ?moment$Moment | |||
onDatesChange | ({startDate: moment$Moment, endDate: moment$Moment}) => void | |||
focusedInput | EnumFocusedInput | |||
onFocusChange | (EnumFocusedInput) => void |