1.2.1 • Published 6 months ago

react-mui-datepicker v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

React MUI Datepicker

The Date Picker component lets the user select a date and supported to Gregorian Calendar and Hijri(Umm Al-Qura) Calendar.

This package relay on MUI and moment hijri

How to use

You can now import DatePicker as a normal package installed from npm like so:

import {DatePicker} from 'react-mui-datepicker'

const App = () => <DatePicker  />;

export default App;

to switch between calendars

import {DatePicker} from 'react-mui-datepicker'

const App = () => <DatePicker  isToggle />;

export default App;

Available props

The React MUI Datepicker component accepts the following props:

PropTypeDescription
langar or en (optional)default: en
isErrorboolean (optional)
maxDateDate (optional)
minDateDate (optional)
disabledboolean (optional)
refReact.Ref (optional)
valuestring (optional)
onChange(date: Moment or null) => void (optional)
toggleTextstring (optional)
isToggleboolean (optional)
calendar"gregrian" or "hijri" (optional)default: gregrian
toggleClassNamestring (optional)
inputClassNamestring (optional)

License

react-mui-datepicker is available under the MIT license