Skip to content
Accessible, customizable, delightful date & time pickers for @material-ui/core
Branch: develop
Clone or download
ffhakanguenduez and dmtrKovalenko Fix PropTypes warning, if using custom TextField. (#965)
When using the classical TextField comp. from Material-UI, wrapping it withStyles, results in an object. That is new, but ok.
Therefore extending the PropTypes here, so that warning does not accidentally happen anymore.
Latest commit 9da5a84 Mar 26, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update bugfix template sandbox example Feb 1, 2019
docs Fix incorrect id in codefund script Mar 25, 2019
lib Fix PropTypes warning, if using custom TextField. (#965) Mar 26, 2019
.editorconfig Add umd build Jul 23, 2018
.gitignore New docs (#924) Mar 1, 2019
.npmignore Move lib and docs to isolate folders Nov 21, 2017
.prettierrc Use 100 symbols for prettier maxWidth Nov 28, 2018
.travis.yml Move running cypress tests to circleci (#888) Jan 29, 2019 Update contributing guide Jan 27, 2019
LICENSE Initial commit Oct 7, 2017
now.json Codefund (#961) Mar 25, 2019
package.json Release 2.2.2 Mar 2, 2019

Material-UI logo

Material-UI pickers

Accessible, customizable, delightful date & time pickers for @material-ui/core

npm package npm download codecov Bundle Size Build Status tests code style: prettier


Available as npm package.

npm i material-ui-pickers

// or via yarn
yarn add material-ui-pickers

Now choose the library that pickers will use to work with date. We are providing interfaces for moment, luxon, dayjs and date-fns v2. If you are not using moment in the project (or dont have it in the bundle already) we suggest using date-fns or luxon, because they are much lighter and will be correctly tree-shaked from the bundle. Note, that we are fully relying on date-io for supporting different libraries.

npm i date-fns@next @date-io/date-fns
// or
npm i moment @date-io/moment
// or
npm i luxon @date-io/luxon
// or
npm i dayjs @date-io/dayjs

Then teach pickers which library to use with MuiPickerUtilsProvider. This component takes a utils property, and makes it available down the React tree thanks to React context. It should preferably be used at the root of your component tree.

import MomentUtils from '@date-io/moment';
import DateFnsUtils from '@date-io/date-fns';
import LuxonUtils from '@date-io/luxon';
import { MuiPickersUtilsProvider } from 'material-ui-pickers';

function App() {
  return (
    <MuiPickersUtilsProvider utils={DateFnsUtils}>
      <Root />

render(<App />, document.querySelector('#app'));


Check out the documentation website

Recently updated?

Changelog available here


For information about how to contribute, see the CONTRIBUTING file.


The project is licensed under the terms of MIT license

You can’t perform that action at this time.