DateTimePicker

It is based on the react-datepicker library.

All the props the library exposes can be passed to either DatePicker or TimePicker.

Note: Pass a value of null if you don't want the default value of Date.now().

Install and import

yarn add @welcome-ui/date-time-picker @xstyled/styled-components @xstyled/system prop-types react react-dom styled-components
import { DateTimePicker } from '@welcome-ui/date-time-picker'

Simple use case

{
"welcome": 1593679203038
}

Pass props to DatePicker

{
"welcome2": 1593679203046
}

Properties

NameType(s)DefaultRequired
children
node
disabled
bool
locale
object
onChange
func
size
sm
md
lg
lg
value
number | object | string
DEFAULT_DATE

Dependencies

Peer dependencies