0.1.8 • Published 6 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
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5-a
6 years ago
0.1.5
6 years ago
0.1.4-d
6 years ago
0.1.4-c
6 years ago
0.1.4-b
6 years ago
0.1.4-a
6 years ago
0.1.4
6 years ago
0.1.3-h
6 years ago
0.1.3-g
6 years ago
0.1.3-f
6 years ago
0.1.3-e
6 years ago
0.1.3-d
6 years ago
0.1.3-c
6 years ago
0.1.3-b
6 years ago
0.1.3-a
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago