Field

Usage and props

The Field component can be used as input, select or textarea. it's fully accessible (a11y)
PropTypeDescription
disabledBooleanit specifies that a field should be disabled.
dotBooleanIf true, a dot will be displayed on the side of the label to indicate a required field
errorStringdisplays an error message (when its value is not null)
iconJSX.Elementdisplays an icon to the left of the field
labelStringlabel of the field
*nameStringname of the field
refanyReact ref
*typeStringtype of the field (select, textarea, text, number, checkbox, password etc...)
You can also use all the default html attributes for each type of field such as (placeholder, onClick, onChange, onBlur and others ...)

Example

Password is required