React Hijri DatePicker
A simple and reusble react component for hijir date pickre.
Installation
The package can be installed using npm, this package requires you to install moment-hijri, react-popper, react-onclickoutside and styled_components
npm i hijri-date-picker
Or with script tag
Usage
Example 1: npm installation
Example 2: script tag
The prop
quickSelect
this adds a quick select for year and month only add to the props quickSelect
for the tag example will be quick-select="true"
Date Format 'Default is iYYYY/iMM/iDD
'
we are using moment and exactly moment hijri so any format for moment-hijri package will work fine, so any format must have the letter i
before it e.g. (YYYY-MM-DD
-> iYYYY-iMM-iDD
).