GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.nativebase.io — FormControl | NativeBase | Universal Components for React and React Native FormControl | NativeBase | Universal Components for React and React NativeDisclosure If you are starting a new project, please try gluestack-ui for better performance and new design. FormControl FormControl is used to form elements by providing context such as isInvalid, isDisabled, and isRequired.
Examples Basic
Custom Style
Props FormControl FormControl implements , , , , , , , , , nativeID If provided, this prop is passed to its children. Type: string isInvalid If true, this prop is passed to its children. Type: boolean isRequired If true, this prop is passed to its children. Type: boolean isDisabled If true, this prop is passed to its children. Type: boolean isReadOnly If true, this prop is passed to its children. Type: boolean FormControl.Label FormControlLabel implements , , , , , , , , , _disabled Passed props will be applied on disabled state. Type: Partial<IBoxProps<IFormControlLabelProps>> _invalid Passed props will be applied on invalid state. Type: Partial<IBoxProps<IFormControlLabelProps>> htmlFor Reflects the value of the 'for' content property. Type: string _astrick Props applied to astrick text Type: Partial<ITextProps> FormControl.ErrorMessage FormControlErrorMessage implements , , , , , , , , , _disabled Passed props will be applied on disabled state. Type: Partial<IBoxProps<IFormControlLabelProps>> rightIcon The right icon element to use in the FormControl.ErrorMessage. Type: Element | Element[] leftIcon The left icon element to use in the FormControl.ErrorMessage. Type: Element | Element[] startIcon The start icon element to use in the FormControl.ErrorMessage. Type: Element | Element[] endIcon The end icon element to use in the FormControl.ErrorMessage. Type: Element | Element[] _stack Props to be passed to the HStack used inside of FormControl.ErrorMessage. Type: Partial<IStackProps> FormControl.HelperText FormControlHelperText implements , , , , , , , , , _disabled Passed props will be applied on disabled state. Type: Partial<IBoxProps<IFormControlLabelProps>> _invalid Passed props will be applied on invalid state. Type: Partial<IBoxProps<IFormControlLabelProps>> Styling NativeBase ships with a default theme for each component. Check out the default theme of the formControl. Info: We can easily extend the formControl component theme using extendTheme function as described in the documentation . MadeWithNativeBase gluestack-ui |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |