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';
Component name
The nameMuiDateRangePickerDay
can be used when providing default props or style overrides in the theme.Props
Name | Type | Default | Description |
---|---|---|---|
classes* | object | Override or extend the styles applied to the component. See CSS API below for more details. | |
day* | any | The date to show. | |
isEndOfHighlighting* | bool | false | Set to true if the day is the end of a highlighted date range. |
isEndOfPreviewing* | bool | false | Set to true if the day is the start of a highlighted date range. |
isHighlighting* | bool | false | Set to true if the day is in a highlighted date range. |
isPreviewing* | bool | false | Set to true if the day is in a preview date range. |
isStartOfHighlighting* | bool | false | Set to true if the day is the start of a highlighted date range. |
isStartOfPreviewing* | bool | false | Set to true if the day is the end of a highlighted date range. |
outsideCurrentMonth* | bool | false | If true , day is outside of month and will be hidden. |
children | node | The content of the component. | |
selected | bool | false | If true , renders as selected. |
The
ref
is forwarded to the root element.CSS
Rule name | Global class | Description |
---|---|---|
root | .MuiDateRangePickerDay-root | Styles applied to the root element. |
dayWithMargin | .MuiDateRangePickerDay-dayWithMargin | Styles applied to the root element if disableMargin=false . |
dayOutsideMonth | .MuiDateRangePickerDay-dayOutsideMonth | Styles applied to the root element if outsideCurrentMonth=true and showDaysOutsideCurrentMonth=true . |
hiddenDaySpacingFiller | .MuiDateRangePickerDay-hiddenDaySpacingFiller | Styles applied to the root element if outsideCurrentMonth=true and showDaysOutsideCurrentMonth=false . |
today | .MuiDateRangePickerDay-today | Styles applied to the root element if disableHighlightToday=false and today=true . |
selected | .Mui-selected | Pseudo-class applied to the root element if selected=true . |
disabled | .Mui-disabled | Pseudo-class applied to the root element if disabled=true . |
day | .MuiDateRangePickerDay-day | |
rangeIntervalDayHighlight | .MuiDateRangePickerDay-rangeIntervalDayHighlight | |
rangeIntervalDayHighlightStart | .MuiDateRangePickerDay-rangeIntervalDayHighlightStart | |
rangeIntervalDayHighlightEnd | .MuiDateRangePickerDay-rangeIntervalDayHighlightEnd | |
dayOutsideRangeInterval | .MuiDateRangePickerDay-dayOutsideRangeInterval | |
dayInsideRangeInterval | .MuiDateRangePickerDay-dayInsideRangeInterval | |
notSelectedDate | .MuiDateRangePickerDay-notSelectedDate | |
rangeIntervalPreview | .MuiDateRangePickerDay-rangeIntervalPreview | |
rangeIntervalDayPreview | .MuiDateRangePickerDay-rangeIntervalDayPreview | |
rangeIntervalDayPreviewStart | .MuiDateRangePickerDay-rangeIntervalDayPreviewStart | |
rangeIntervalDayPreviewEnd | .MuiDateRangePickerDay-rangeIntervalDayPreviewEnd |
You can override the style of the component using one of these customization options:
- With a rule name of the
classes
object prop. - With a global class name.
- With a theme and an
styleOverrides
property.