0.1.8 • Published 7 years ago
react-hig-datepicker v0.1.8
react-hig-datepicker
Build a simple date picker component with HIG element and style
- based on react-datepicker https://github.com/Hacker0x01/react-datepicker
- based on HIG components library https://github.com/Autodesk/hig
Demo
demo link: https://ziweiwu.github.io/fusion-hig-prototyping
Install the package
yarn add react-hig-datepicker
Usage Example
import DatePicker from 'react-hig-datepicker'
import 'react-hig-datepicker/lib/datePicker.css';
export default class Default extends Component {
constructor(props) {
super(props);
this.state = {
startDate: undefined,
};
this.handleChangeDate = this.handleChangeDate.bind(this);
}
handleChangeDate(date) {
this.setState({ startDate: date });
}
render() {
return (
<DatePicker
onChange={this.handleChangeDate}
selected={this.state.startDate}
/>
);
}
}
More details on props
See https://github.com/ziweiwu/react-date-picker/blob/dev/src/README.md
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5-a
7 years ago
0.1.5
7 years ago
0.1.4-d
7 years ago
0.1.4-c
7 years ago
0.1.4-b
7 years ago
0.1.4-a
7 years ago
0.1.4
7 years ago
0.1.3-h
7 years ago
0.1.3-g
7 years ago
0.1.3-f
7 years ago
0.1.3-e
7 years ago
0.1.3-d
7 years ago
0.1.3-c
7 years ago
0.1.3-b
7 years ago
0.1.3-a
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago