Skip to content

100milliongold/tui-date-picker-react

Repository files navigation

TOAST UI React Component : Date Picker

Made with create-react-library for TOAST UI Component : Date Picker

NPM JavaScript Style Guide License: MIT

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

About

tui.date-picker 을 리엑트

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published