react-typescript-date-picker
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

Date picker

Simple library with date picker and range picker components. Explore on storybook

View

calendar with todolist month calendar

Instalation

npm i react-typescript-date-picker

Provided components

<DatePicker/>
<RangePicker/>

Common Props

 type?: 'day' | 'week' | 'month';
 weekStart?: 1 | 0; // 1-Monday 2-Sunday
 showWeekends?: boolean;
 holidays?: Date[];
 minDate?: Date;
 maxDate?: Date;
 withToDoList?: boolean;
 label?: string;
 mainColor?: string;
 holidayColor?: string;
 errorColor?: string;
 size?: 'small' | 'medium' | 'large';

Date Picker Props

  defaultValue?: Date;
  onChange: (value: Date) => void;

Range Picker Props

  defaultStartDate?: Date;
  defaultEndDate?: Date;
  onChange: (date: { startDate: Date; endDate: Date }) => void;

Readme

Keywords

none

Package Sidebar

Install

npm i react-typescript-date-picker

Weekly Downloads

6

Version

2.0.7

License

ISC

Unpacked Size

164 kB

Total Files

301

Last publish

Collaborators

  • dasha_borodina