Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 5.68 KB

File metadata and controls

118 lines (90 loc) · 5.68 KB

API

Base (Common props)

Props Required Type Description
label false string
helperText false string
disabled false boolean
validation false string rules of validation
validationContext false object { prop: value } extra fields for validation bind (ex. required_if)
errorMessage false string custom error message from external validation

Text

All material-ui props and:

Props Required Type Description
value true any
mask false string
onChange true Function(string/number)
loading false boolean if true will add a progress at right

Checkbox / Switch

All material-ui checkbox and switch props and:

Props Required Type Description
value false any if null will return a boolean
checked true boolean
helperText false string
onChange true Function(value (if provided) or boolean)

Radio

All material-ui radio props and:

Props Required Type Description
value true any Value that will return if selected
checked true boolean
helperText false string
onChange true Function(value)

Date

All material-ui-pickers props and:

Props Required Type Description
value true Date
minDate false Date
maxDate false Date
disablePast false boolean
disableFuture false boolean
format false string luxon string format
locale false string use dateLocale as default
onChange true Function(date)

Select

All material-ui props and:

Props Required Type Description
value true any
options true object { value: string/number, label: string }
onChange true Function(string/number)
loading false boolean if true will add a progress at right

Color

Props Required Type Description
value true string
onChange true Function(string)

Autocomplete

Props Required Type Description
value true any
options true object { value: string/number, label: string }
onChange true Function(string/number)

Hidden

Props Required Type Description
value true any

Custom Message

Props Required Type Description
rules true string separated by comma
children true string message