A React date & time picker component library (antd's picker) supporting multiple time libraries (dayjs, moment, date-fns, luxon). Current stable version is 4.11.3, with the package renamed to @rc-component/picker for the latest major versions. Offers range picking, datetime, month/year/week pickers. Freely configurable via props. Ships TypeScript definitions. Note: v4+ uses dayjs by default; older versions used moment.
npm install rc-pickerVerified import paths — ran on the pinned version, not inferred.
Basic usage: import Picker, include CSS, use dayjs for date handling, set picker prop to 'date' with controlled value and onChange.
Use 'npm install @rc-component/picker' and update imports to '@rc-component/picker'.
Install dayjs: 'npm install dayjs'. Replace moment objects with dayjs objects.
Use 'import RangePicker from 'rc-picker/es/RangePicker'' (or 'lib/RangePicker').
Update allowClear usage: <Picker allowClear /> still works as shorthand, but if you need customization, use allowClear={{ clearIcon: <Icon /> }}.Replace 'className' with 'rootClassName' and 'style' with 'rootStyle'.
For datetime picker, set picker="date" and showTime={{}}.Explicitly set inputReadOnly if you want text input or read-only behavior.
Check if CSS is present at 'rc-picker/dist/rc-picker.css' or install the @rc-component/picker version.
Install dayjs: 'npm install dayjs' and import: 'import dayjs from 'dayjs';'
Ensure value/defaultValue is an instance of a supported date library (dayjs, moment, etc.), or handle null in onChange.
Update rc-picker to version >=4.10.0 or use 'className' instead if using older version.