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
;;; ReactDOM;
Example 2: script tag
React Hijri DatePicker
prop
quickSelect
The this adds a quick select for year and month only add to the props quickSelect
<HijriDatePicker inputName="hijri_date" className="form-control" selectedDate="1439/08/02" dateFormat="iMM/iYYYY/iDD" quickSelect/>
for the tag example will be quick-select="true"
<hijri-date-picker input-name="hijri_date" class-name="form-control" selected-date="1439/08/02" date-format="iMM/iYYYY/iDD" quick-select="true"></hijri-date-picker>
iYYYY/iMM/iDD
'
Date Format 'Default is 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
).
Thank You @xsoh for the awesome package moment-hijri