Made with create-react-library for TOAST UI Component : Date Picker
npm install --save tui-date-picker-react
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"
/>
}
}
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'
}}
/>
)
}
MIT © 100milliongold