diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..e886676d5
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,5 @@
+{
+ "cSpell.words": [
+ "Sourcable"
+ ]
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index 2605e857d..0a181e626 100644
--- a/README.md
+++ b/README.md
@@ -4,97 +4,26 @@
[![Build Status](https://api.travis-ci.org/dmtrKovalenko/material-ui-pickers.svg?branch=master)](https://travis-ci.org/dmtrKovalenko/material-ui-pickers)
> Components, that implements material design date and time pickers for material-ui v1
-## [Click here for demo](https://material-ui-pic.firebaseapp.com/)
-
-### Recently updated?
-Changelog available [here](https://github.com/dmtrKovalenko/material-ui-pickers/releases)
-
### Installation
Available as npm package.
```sh
npm install material-ui-pickers -S
```
+
Now choose the library that pickers will use to work with date. We are providing interfaces for [moment](https://momentjs.com/) and [date-fns](https://date-fns.org/). If you are not using moment in the project (or dont have it in the bundle already) we suggest using date-fns, because it much more lightweight and will be correctly tree-shaked from the bundle.
+
```sh
-npm i date-fns@next -S
+npm install date-fns@next -s
// or
-npm i moment -S
-```
-
-Teach pickers how to use one of that library using `MuiPickersUtilsProvider`. This component takes an 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.
-
-```jsx
-import MomentUtils from 'material-ui-pickers/utils/moment-utils';
-import DateFnsUtils from 'material-ui-pickers/utils/date-fns-utils'
-import MuiPickersUtilsProvider from 'material-ui-pickers/utils/MuiPickersUtilsProvider'
-
-function App() {
- return (
-
-
-
- );
-}
-
-render(, document.querySelector('#app'));
+npm install moment -S
```
-We are using material-ui-icons icon font to display icons. Just add this to your html
-```html
-
-```
-If you dont want to use icon font, or you are already use `material-ui-icons` you can pass any icon to the components with [corresponding props](https://github.com/dmtrKovalenko/material-ui-pickers#props-documentation)
-
-### Usage
-Here is a quick example of how to use this package
-
-```jsx
-import { TimePicker, DatePicker, DateTimePicker } from 'material-ui-pickers'
-
-class App extends Component {
- state = {
- selectedDate: new Date(),
- selectedTime: new Date(),
- selectedDateTime: new Date()
- }
-
- handleDateChange = date => {
- this.setState({ selectedDate: date })
- }
-
- handleTimeChange = time => {
- this.setState({ selectedTime: time })
- }
-
- handleDateTimeChange = dateTime => {
- this.setState({ selectedDateTime: dateTime })
- }
-
- render() {
- const { selectedDate, selectedTime, selectedDateTime } = this.state
-
- return (
-
-
-
-
-
-
-
- )
- }
-}
-```
+## Documentation
+Check out material-ui-picker's [documentation](https://material-ui-pickers.firebaseapp.com/)
+### Recently updated?
+Changelog available [here](https://github.com/dmtrKovalenko/material-ui-pickers/releases)
+w
### Props documentation
Here is a list of available props
@@ -134,7 +63,9 @@ clearable | boolean | false | If `true`, clear button will be displayed
TextFieldComponent | func, string | undefined | Component that should replace the default Material-UI TextField
InputAdornmentProps | object | {} | Props to pass to keyboard input adornment
inputAdornmentPosition | enum 'start', 'end' | 'end' | Specifies position of keyboard adornment
-
+pickerRef | func | undefined | Ref to the picker component
+onOpen | func | undefined | On open callback
+onClose | func | undefined | On close callback
#### Timepicker
Prop | Type | Default | Definition
@@ -157,6 +88,9 @@ clearable | boolean | false | If `true`, clear button will be displayed
TextFieldComponent | func, string | undefined | Component that should replace the default Material-UI TextField
InputAdornmentProps | object | {} | Props to pass to keyboard input adornment
inputAdornmentPosition | enum 'start', 'end' | 'end' | Specifies position of keyboard adornment
+pickerRef | func | undefined | Ref to the picker component
+onOpen | func | undefined | On open callback
+onClose | func | undefined | On close callback
#### DateTimepicker
Prop | Type | Default | Definition
@@ -196,6 +130,9 @@ clearable | boolean | false | If `true`, clear button will be displayed
TextFieldComponent | func, string | undefined | Component that should replace the default Material-UI TextField
InputAdornmentProps | object | {} | Props to pass to keyboard input adornment
inputAdornmentPosition | enum 'start', 'end' | 'end' | Specifies position of keyboard adornment
+pickerRef | func | undefined | Ref to the picker component
+onOpen | func | undefined | On open callback
+onClose | func | undefined | On close callback