import * as React from 'react'import { TimePicker } from '@welcome-ui/time-picker'const Example = () => {return <TimePicker name="welcome" value={new Date()} />}export default Example
Installation
1
Run the following command:
yarn add @welcome-ui/time-picker
2
Import component:
import { TimePicker } from '@welcome-ui/time-picker'
react-datepicker
It is based on the react-datepicker library.
Note: Pass a value of null
if you don't want the default value of Date.now()
.
Give an Icon
Add an icon with the icon
property