@softwares-land/react-persian-datepicker
v1.0.2
Published
Persian calendar and date picker components for React
Downloads
8
Maintainers
Readme
React Persian Date Picker :calendar:
Installation
Use npm to install the package:
npm @softwares-land/react-persian-datepicker --save
Usage
This package offers two components, Calendar
and DatePicker
. The first of which is a simple calendar that you can use in whichever way you want. The second one is an actual input with an input-ish behaviour.
This package uses moment-jalaali under the hood and all the values are basically moment objects.
Below is a basic example.
import React from "react";
import { Calendar, DatePicker } from "@softwares-land/react-persian-datepicker";
const MyComponent = () => (
<div>
<div>
{/* Calendar Component */}
<Calendar />
</div>
<div>
{/* Date Picker Component */}
<DatePicker />
</div>
</div>
);