persian-date-picker-mj
v1.8.0
Published
Two test React components
Downloads
490
Readme
This is Modified modern date picker package
usage and props listed below
Usage
Just import ModernDatePicker from library and add "name" and "lableText" and "placeholder" to work minimal.\
Dont forget to use it in formik library
Properties
id
the id of element that you can modify it
name
the name that match to initialValue of formik and can change it
lableText
LabelText prop for label
inputClassName
className for input.can modify style
wrapperClassName
className for wrapper of input . can modify style
placeholder
text behind the input when its clear
significant
mark the label to force fill by user
initialValue
the first value to show .
{day:1 , month: 1 , year: 1400}
hasMaximum
when true datePicker just show till today.
but when it has false, show all days after today(tommorrows)
disabled
disable the input
hasLabel
when it has false, label doesnt show to user
minimumDate
an object that allow date picker to filter days minimum to this property.
{day:1 , month: 1 , year: 1400}
forcePosition
this prop allow 'bottom' | 'top' | 'auto'.\
** default it has auto