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';
// 或
import { DateRangePickerDay } from '@material-ui/lab';
Component name
The nameMuiDateRangePickerDay
can be used when providing default props or style overrides in the theme.属性
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
classes* | object | ||
day* | any | The date to show. | |
isEndOfHighlighting* | bool | false | |
isEndOfPreviewing* | bool | false | |
isHighlighting* | bool | false | |
isPreviewing* | bool | false | |
isStartOfHighlighting* | bool | false | |
isStartOfPreviewing* | bool | false | |
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. |
ref
则会被传递到根元素中。CSS
Rule name | Global class | 描述 |
---|---|---|
root | .MuiDateRangePickerDay-root | |
dayWithMargin | .MuiDateRangePickerDay-dayWithMargin | |
dayOutsideMonth | .MuiDateRangePickerDay-dayOutsideMonth | |
hiddenDaySpacingFiller | .MuiDateRangePickerDay-hiddenDaySpacingFiller | |
today | .MuiDateRangePickerDay-today | |
selected | .Mui-selected | |
disabled | .Mui-disabled | |
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.