tui-date-picker-react
v0.0.1-rebuild-3
Published
React plugin for tui-date-picker
Downloads
17
Maintainers
Readme
TOAST UI React Component : Date Picker
Made with create-react-library for TOAST UI Component : Date Picker
Install
npm install --save tui-date-picker-react
Usage
Date Picker
import React, { Component } from 'react'
import { TuiDateRangePicker } from 'tui-date-picker-react'
class Example extends Component {
render() {
return <TuiDatePicker
date={new Date()}
format='yyyy/MM/dd HH:mm'
timePicker={{
layoutType: 'tab',
inputType: 'spinbox'
}}
onChange={e => console.log(e)}
language="ko"
/>
}
}
Date Range Picker
import React, { Component } from 'react'
import { TuiDateRangePicker } from 'tui-date-picker-react'
const App = () => {
return (
<TuiDateRangePicker
onChange={([startDate, endDate]) =>
console.log(startDate, endDate)}
language='ko'
format='yyyy/MM/dd HH:mm'
timePicker={{
layoutType: 'tab',
inputType: 'spinbox'
}}
/>
)
}
License
MIT © 100milliongold