PickersSectionList API
API reference docs for the React PickersSectionList component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { PickersSectionList } from '@mui/x-date-pickers/PickersSectionList';
// or
import { PickersSectionList } from '@mui/x-date-pickers';
// or
import { PickersSectionList } from '@mui/x-date-pickers-pro';Learn about the difference by reading this guide on minimizing bundle size.
| Name | Type | Description |
|---|---|---|
| contentEditable* | bool | If true, the whole element is editable. Useful when all the sections are selected. |
| elements* | Array<{ after: HTMLAttributes | The elements to render. Each element contains the prop to edit a section of the value. |
| sectionListRef* | ref | |
| classes | Partial | Override or extend the styles applied to the component. See CSS classes API below for more details. |
| slotProps | PickersSectionListSlotProps | The props used for each component slot. |
| slots | PickersSectionListSlots | Overridable component slots. See Slots API below for more details. |
| Slot name | Class name | Default component | Description |
|---|---|---|---|
| root | .MuiPickersSectionList-root | ||
| section | .MuiPickersSectionList-section | ||
| sectionContent | .MuiPickersSectionList-sectionContent | ||
| sectionSeparator |
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
| Class name | Rule name | Description |
|---|---|---|
| .MuiPickersSectionList-root | root | Styles applied to the root element. |
| .MuiPickersSectionList-section | section | Styles applied to the container of a section. |
| .MuiPickersSectionList-sectionContent | sectionContent | Styles applied to the content of a section. |
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverridesproperty in a custom theme.
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.