Skip to content
1.0 beta · typing, ranges, two months, presets →

patroAD and BS dates for React

A calendar and datepicker for Gregorian and Bikram Sambat dates, side by side. Accessible, ready for real forms and server rendering, with AD ↔ BS conversion built in.

$ npm i patrojs@beta

Playground

Try it

Switch calendars, pick a day or a range, or type a date like 2083-07-12 into the Datepicker. The panel shows exactly what onChange gives you.

Every prop, live, in Storybook (coming soon) →

Quick start

Up and running in a minute ​

1Install ​

bash
npm i patrojs@beta

2Add the styles ​

js
import 'patrojs/style.css';

3Pick a date ​

tsx
import { Datepicker } from 'patrojs';

<Datepicker calendar='BS' />

Released under the MIT License.