Skip to contentSkip to content

LocalizationProvider API

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

Demos

Import

import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
// or
import { LocalizationProvider } from '@mui/x-date-pickers';
// or
import { LocalizationProvider } from '@mui/x-date-pickers-pro';

Learn about the difference by reading this guide on minimizing bundle size.



Props

NameTypeDescription
adapterLocaleany

Locale for the date library you are using

dateAdapternew (...args: any) => MuiPickersAdapter

Date library adapter class function.

See date adapter setup section for more details.

dateFormats{ dayOfMonth?: string, dayOfMonthFull?: string, fullDate?: string, fullTime12h?: string, fullTime24h?: string, hours12h?: string, hours24h?: string, keyboardDate?: string, keyboardDateTime12h?: string, keyboardDateTime24h?: string, meridiem?: string, minutes?: string, month?: string, monthShort?: string, normalDate?: string, normalDateWithWeekday?: string, seconds?: string, shortDate?: string, weekday?: string, weekdayShort?: string, year?: string }

Formats that are used for any child pickers

dateLibInstanceany

Date library instance you are using, if it has some global overrides ``jsx dateLibInstance={momentTimeZone} ``

localeTextPartial

Locale for components texts

The component cannot hold a ref.

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.