Version: 3.0.0-next.36

Form Control

FormControl provides context such as isInvalid, isDisabled, and isRequired to form elements.

Import#

import { FormControl } from 'native-base';

Examples#

Basic#

Custom Style#

Props#

FormControl#

NameTypeDescriptionDefault
isInvalidbooleanIf true, this prop is passed to its children.-
isRequiredbooleanIf true, this prop is passed to its children.-
isDisabledbooleanIf true, this prop is passed to its children.-
isReadOnlybooleanIf true, this prop is passed to its children.-

FormControl.Label, FormControl.HelperText, and FormControl.ErrorMessage can be styled using pseudo style props like _invalid and _disabled.