Skip to contentSkip to content

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.

Props

NameTypeDescription
contentEditable*bool

If true, the whole element is editable. Useful when all the sections are selected.

elements*Array<{ after: object, before: object, container: object, content: object }>

The elements to render. Each element contains the prop to edit a section of the value.

sectionListRef*func
| { current?: { getRoot: func, getSectionContainer: func, getSectionContent: func, getSectionIndexFromDOMElement: func } }

The ref used to access the DOM elements of the sections.

classesobject

Override or extend the styles applied to the component.

See CSS classes API below for more details.

slotPropsobject

The props used for each component slot.

slotsobject

Overridable component slots.

See Slots API below for more details.

The component cannot hold a ref.

Slots

Slot nameClass nameDefault componentDescription
root.MuiPickersSectionList-rootPickersSectionListRootThe component that renders the root.
section.MuiPickersSectionList-sectionPickersSectionListSectionThe component that renders a section.
sectionContent.MuiPickersSectionList-sectionContentPickersSectionListSectionContentThe component that renders the editable content of a section.
sectionSeparatorPickersSectionListSectionSeparatorThe component that renders the separator before or after a section.

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.