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