An open API service indexing awesome lists of open source software.

https://github.com/rehookify/datepicker

The ultimate tiny tool for creating date and range pickers in your React applications.
https://github.com/rehookify/datepicker

date-picker hook range-picker react react-hooks time-picker

Last synced: 11 months ago
JSON representation

The ultimate tiny tool for creating date and range pickers in your React applications.

Awesome Lists containing this project

README

          

# @rehookify/datepicker

`@rehookify/datepicker` is an ultimate tool for creating date, range, and time pickers in your React applications.

It provides behavioral and accessibility implementations for all sorts of calendars, date and time pickers.

[![size](https://img.shields.io/bundlephobia/minzip/@rehookify/datepicker?label=MIN%20%2B%20GZIP&style=for-the-badge)](https://bundlephobia.com/package/@rehookify/datepicker)
[![npm](https://img.shields.io/npm/dw/@rehookify/datepicker?style=for-the-badge)](https://www.npmjs.com/package/@rehookify/datepicker)
[![discord](https://img.shields.io/discord/1052153401712062474?color=%237289da&logo=discord&style=for-the-badge)](https://discord.gg/vyM2jhYa33)


Tutorials |
Examples |
Configuration |
State |
Modular Hooks

## #StandWithUkraine πŸ’™πŸ’›

We have war at our home πŸ‡ΊπŸ‡¦

Help us in our struggle, πŸ’° [United24](https://u24.gov.ua/), [KOLO](https://www.koloua.com/en), [Come Back Alive](https://savelife.in.ua/en/)

## Features

- Small in size.
- No dependencies.
- [Modular design](https://www.rehookify.com/datepicker/modular-hooks): You can use as little code as possible.
- Supports single, multiple, and range date selection, as well as a time picker.
- Multiple calendar support.
- Native localization support using *.toLocaleDateString* and *.toLocaleTimeString*.
- Follows the `prop-getters` pattern, providing all the necessary props for your components.

## Motivation

By picking a date picker for you project you can get such problems:

- πŸ™… your component library doesn't have the component that you need;
- βš™οΈ you need to make changes to your build process;
- πŸ’… your styling system is different from the most popular solution;
- 🦹 it's challenging to customise a component that matches your design;
- πŸ’° it could cost money to get needed components;
- πŸ‹οΈ the library is heavy and doesn't have tree-shaking;
- πŸ“š bad documentation;
- ⛔️ no tests, no TypeScript support, no examples...

## Instalation

`@rehookify/datepicker` is available as a package in npm registry.

You can use your favarite package manager to insall it:

```bash
npm i @rehookify/datepicker
```

```bash
yarn add @rehookify/datepicker
```

```bash
pnpm add @rehookify/datepicker
```

Start with [tutorials](https://rehookify.com/datepicker/tutorials)