Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.07 KB

File metadata and controls

40 lines (28 loc) · 1.07 KB
title Persian Calendar

DayPicker supports the Persian Solar Hijri calendar via a dedicated build.

Install the React package and the Persian calendar package:

npm install @daypicker/react @daypicker/persian

Import DayPicker from @daypicker/persian to render Persian months and weekdays while keeping the usual DayPicker API.

import { DayPicker } from "@daypicker/persian";

Farsi labels, Eastern Arabic-Indic digits

import { DayPicker, faIR } from "@daypicker/persian";
<DayPicker locale={faIR} />;

English labels, LTR, Latin digits

import { DayPicker, enUS } from "@daypicker/persian";

<DayPicker locale={enUS} dir="ltr" numerals="latn" />;