Buddhist (Thai) Calendar
DayPicker supports the Buddhist (Thai) calendar via a dedicated build. Months and weeks remain Gregorian, while years render in Buddhist Era (BE = CE + 543) and Thai numerals by default.
Install the React package and the Buddhist calendar package:
- npm
- Yarn
- pnpm
- Bun
npm install @daypicker/react@next @daypicker/buddhist@next
yarn add @daypicker/react@next @daypicker/buddhist@next
pnpm add @daypicker/react@next @daypicker/buddhist@next
bun add @daypicker/react@next @daypicker/buddhist@next
Import DayPicker from @daypicker/buddhist to render Buddhist years while keeping the usual DayPicker API.
import { DayPicker } from "@daypicker/buddhist";
Basic usage
import { DayPicker } from "@daypicker/buddhist";
<DayPicker />;
English locale with latin numerals
import { DayPicker, enUS } from "@daypicker/buddhist";
<DayPicker locale={enUS} numerals="latn" />;