material-ui-pickers

React components, that implements material design pickers for material-ui v1

You can now upgrade to @material-ui/pickers. Documentation for v2 can be found at https://material-ui-pickers-v2.dmtr-kovalenko.now.sh/
Last updated 7 months ago by dmtr.kovalenko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install material-ui-pickers 
SYNC missed versions from official npm registry.

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 Cypress.io tests code style: prettier

Installation

Stable channel (v2). Docs site.

// via npm
npm i material-ui-pickers

// via yarn
yarn add material-ui-pickers

Next channel (v3-alpha). Docs site. Migration guide

// via npm
npm i material-ui-pickers@next

// via yarn
yarn add material-ui-pickers@next

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 />
    </MuiPickersUtilsProvider>
  );
}

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

Documentation

Check out the documentation website

Recently updated?

Changelog available here

Contributing

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

LICENSE

The project is licensed under the terms of MIT license

Current Tags

  • 2.2.4                                ...           latest (7 months ago)
  • 3.0.0-alpha.3                                ...           next (5 months ago)

65 Versions

  • 3.0.0-alpha.3                                ...           5 months ago
  • 3.0.0-alpha.2                                ...           5 months ago
  • 3.0.0-alpha.1                                ...           5 months ago
  • 2.2.4 [deprecated]           ...           7 months ago
  • 2.2.3 [deprecated]           ...           7 months ago
  • 2.2.2 [deprecated]           ...           7 months ago
  • 2.2.1 [deprecated]           ...           7 months ago
  • 2.2.0 [deprecated]           ...           7 months ago
  • 2.1.2 [deprecated]           ...           8 months ago
  • 2.1.1 [deprecated]           ...           8 months ago
  • 2.1.0 [deprecated]           ...           8 months ago
  • 2.0.5 [deprecated]           ...           9 months ago
  • 2.0.4 [deprecated]           ...           10 months ago
  • 2.0.3 [deprecated]           ...           10 months ago
  • 2.0.2 [deprecated]           ...           10 months ago
  • 2.0.1 [deprecated]           ...           10 months ago
  • 2.0.0 [deprecated]           ...           10 months ago
  • 1.0.1 [deprecated]           ...           a year ago
  • 1.0.0 [deprecated]           ...           a year ago
  • 1.0.0-rc.17                                ...           a year ago
  • 1.0.0-rc.16                                ...           a year ago
  • 1.0.0-rc.15                                ...           a year ago
  • 1.0.0-rc.14                                ...           a year ago
  • 1.0.0-rc.13                                ...           a year ago
  • 1.0.0-rc.12                                ...           a year ago
  • 1.0.0-rc.11                                ...           a year ago
  • 1.0.0-rc.10                                ...           a year ago
  • 1.0.0-rc.9                                ...           a year ago
  • 1.0.0-rc.8                                ...           a year ago
  • 1.0.0-rc.7                                ...           a year ago
  • 1.0.0-rc.6                                ...           a year ago
  • 1.0.0-rc.5                                ...           a year ago
  • 1.0.0-rc.4                                ...           a year ago
  • 1.0.0-rc.3                                ...           2 years ago
  • 1.0.0-rc.2                                ...           2 years ago
  • 1.0.0-rc.1                                ...           2 years ago
  • 1.0.0-beta.15.1                                ...           2 years ago
  • 1.0.0-beta.15                                ...           2 years ago
  • 1.0.0-beta.14                                ...           2 years ago
  • 1.0.0-beta.13.1                                ...           2 years ago
  • 1.0.0-beta.13                                ...           2 years ago
  • 1.0.0-beta.12                                ...           2 years ago
  • 1.0.0-beta.11                                ...           2 years ago
  • 1.0.0-beta.10                                ...           2 years ago
  • 1.0.0-beta.9                                ...           2 years ago
  • 1.0.0-beta.8                                ...           2 years ago
  • 1.0.0-beta.7                                ...           2 years ago
  • 1.0.0-beta.6                                ...           2 years ago
  • 1.0.0-beta.5                                ...           2 years ago
  • 1.0.0-beta.4                                ...           2 years ago
  • 1.0.0-beta.3                                ...           2 years ago
  • 1.0.0-beta.2                                ...           2 years ago
  • 1.0.0-alpha.13                                ...           2 years ago
  • 1.0.0-alpha.12                                ...           2 years ago
  • 1.0.0-alpha.11                                ...           2 years ago
  • 1.0.0-alpha.10                                ...           2 years ago
  • 1.0.0-alpha.9                                ...           2 years ago
  • 1.0.0-alpha.8                                ...           2 years ago
  • 1.0.0-alpha.7                                ...           2 years ago
  • 1.0.0-alpha.6                                ...           2 years ago
  • 1.0.0-alpha.5                                ...           2 years ago
  • 1.0.0-alpha.4                                ...           2 years ago
  • 1.0.0-alpha.3                                ...           2 years ago
  • 1.0.0-alpha.2                                ...           2 years ago
  • 1.0.0-alpha.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 15
This Month 120
Last Day 4
Last Week 55
Last Month 348
Dependencies (6)
Dev Dependencies (0)
None
Dependents (137)

Copyright 2014 - 2016 © taobao.org |