Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gpbl/react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://github.com/gpbl/react-day-picker

calendar calendar-component calendar-widget component date-fns date-picker date-picker-range datepicker react react-component

Last synced: 7 days ago
JSON representation

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.

Awesome Lists containing this project

README

        

# React DayPicker

DayPicker is a [React](https://react.dev) component for creating date pickers, calendars, and date inputs for web applications.

๐Ÿ“– See **[daypicker.dev](https://daypicker.dev)** for guides, examples and API reference.

## Features

- ๐Ÿ›  Extensive set of props for [customizing](https://daypicker.dev/docs/customization) the calendar.
- ๐ŸŽจ Minimal design that can be [easily styled](https://daypicker.dev/docs/styling) with CSS or any CSS framework.
- ๐Ÿ“… Supports [selections](https://daypicker.dev/docs/selection-modes) of single days, multiple days, ranges of days, or [custom selections](https://daypicker.dev/guides/custom-selections).
- ๐ŸŒ Can be [localized](https://daypicker.dev/docs/localization) into any language, supports [ISO 8601 dates](https://daypicker.dev/docs/localization#iso-week-dates), [time zones](https://daypicker.dev/docs/localization#time-zone), and the [Jalali calendar](https://daypicker.dev/docs/localization#jalali-calendar).
- ๐Ÿฆฎ Complies with WCAG 2.1 AA requirements for [accessibility](https://daypicker.dev/guides/accessibility).
- โš™๏ธ [Customizable components](https://daypicker.dev/guides/custom-components) to extend the rendered elements.
- ๐Ÿ”ค Easy integration [with input fields](https://daypicker.dev/guides/input-fields).

DayPicker is written in TypeScript and compiled to CommonJS and ESM. It relies on [date-fns](https://date-fns.org) for date manipulation and formatting.

## Installation

```bash
npm install react-day-picker
```

npm version
npm downloads Min gzipped size

## Example

```tsx
import { DayPicker } from "react-day-picker";
import "react-day-picker/style.css";

function MyDatePicker() {
const [selected, setSelected] = useState();

return (

);
}
```

## Compatibility

DayPicker is compatible with React 16.8 and later.

## License

DayPicker is released under the [MIT License](https://daypicker.dev/license).

## Community

Ask for help and share your experience with DayPicker:

- ๐Ÿ’ฌ [Discussion forums](https://github.com/gpbl/react-day-picker/discussions) - Get support and provide feedback.
- ๐Ÿชณ [Report an issue](https://github.com/gpbl/react-day-picker/issues/new/choose) - Report bugs or request features.

## Funding

Consider supporting DayPicker's maintainer with a donation. Your support helps keep the project alive and up-to-date.

- ๐ŸŽ—๏ธ [Sponsor DayPicker on GitHub](https://github.com/sponsors/gpbl)