Skip to content

PickersLayout API

API reference docs for the React PickersLayout component. Learn about the props, CSS, and other APIs of this exported module.

Component demos

Import

import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
// or
import { PickersLayout } from '@mui/x-date-pickers';
// or
import { PickersLayout } from '@mui/x-date-pickers-pro';
Learn about the difference by reading this guide on minimizing bundle size.

Props

orientation

Force rendering in particular orientation.

Type:'landscape'
| 'portrait'


slotProps

The props used for each component slot.

Type:object

Default:{}


slots

Overridable component slots.

See Slots API below for more details.

Type:object

Default:{}


The component cannot hold a ref.

Slots

tabs

Tabs enabling toggling between views.

Class name: .MuiPickersLayout-tabs


toolbar

Custom component for the toolbar. It is placed above the picker views.

Class name: .MuiPickersLayout-toolbar


actionBar

Custom component for the action bar, it is placed below the picker views.

Class name: .MuiPickersLayout-actionBar

Default component: PickersActionBar


shortcuts

Custom component for the shortcuts.

Class name: .MuiPickersLayout-shortcuts

Default component: PickersShortcuts


layout

Custom component for wrapping the layout. It wraps the toolbar, views, action bar, and shortcuts.


CSS classes

These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.

.MuiPickersLayout-contentWrapper

Styles applied to the contentWrapper element (which contains the tabs and the view itself).

Rule name:contentWrapper


.MuiPickersLayout-landscape

Styles applied to the root element in landscape orientation.

Rule name:landscape


.MuiPickersLayout-root

Styles applied to the root element.

Rule name:root



You can override the style of the component using one of these customization options: