Skip to content
v1.0.2 · see what's new →

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

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.

See it in real apps: bookings, forms, a festival calendar →
Every prop, live, in Storybook →

Quick start

Up and running in a minute ​

1Install ​

bash
npm i patrojs

2Add the styles ​

js
import 'patrojs/style.css';

3Pick a date ​

tsx
import { Datepicker } from 'patrojs';

<Datepicker calendar='BS' />

Released under the MIT License.