Skip to content

DateRangePickerDay API

API documentation for the React DateRangePickerDay component. Learn about the available props, and the CSS API.

Import

import DateRangePickerDay from '@material-ui/lab/DateRangePickerDay';
// or
import { DateRangePickerDay } from '@material-ui/lab';
You can learn about the difference by reading this guide on minimizing bundle size.

Props

NameTypeDefaultDescription
day*anyThe date to show.
isEndOfHighlighting*boolfalseSet to true if the day is the end of a highlighted date range.
isEndOfPreviewing*boolfalseSet to true if the day is the start of a highlighted date range.
isHighlighting*boolfalseSet to true if the day is in a highlighted date range.
isPreviewing*boolfalseSet to true if the day is in a preview date range.
isStartOfHighlighting*boolfalseSet to true if the day is the start of a highlighted date range.
isStartOfPreviewing*boolfalseSet to true if the day is the end of a highlighted date range.
outsideCurrentMonth*boolfalseIf true, day is outside of month and will be hidden.
childrennodeThe content of the component.
selectedboolfalseIf true, renders as selected.

The ref is forwarded to the root element.

Demos