import { DatePicker } from 'welcome-ui/DatePicker'const Example = () => {return <DatePicker name="welcome" value={new Date()} />}export default Example
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
Sizes
Use size property with option:
xs(24px)sm(32px)md(40px - default)lg(48px)
Locales
You can change your locale by pass locale property from date-fns.
Only display months
Pass showMonthYearPicker to only display months, without days