created:4/8/2021
updated:4/8/2021
source lines:13
comments %:23
TextInputField
grommet-controls
3.0.1A TextInput field with form validation
Name | Description | Default | |
---|---|---|---|
IWithFormFieldProps (7 properties) | |||
validation | default validation rules ValidationFunc | ValidationObj | ValidationType[] | - | |
name | field name string | - | |
label | field label ReactNode | - | |
description | field help/description string | - | |
controlLabel | if separate - label of the FormField ReactNode | - | |
inField | whether the field is in a FormField boolean | - | |
children | child component ((props: IFieldProps) => any) | (((props: IFieldProps) => any) & string) | (((props: IFieldProps) => any) & number) | (((props: IFieldProps) => any) & false) | (((props: IFieldProps) => any) & true) | (((props: IFieldProps) => any) & ReactElement<...>) | (((props: IFieldProps) => any) & ReactNodeArray) | (((props: I... | - | |
TextInputProps (20 properties) | |||
ClassAttributes (1 properties) | |||
Attributes (1 properties) | |||
InputHTMLAttributes (29 properties) | |||
HTMLAttributes (42 properties) | |||
AriaAttributes (48 properties) | |||
DOMAttributes (159 properties) |
package | imports | peer |
---|---|---|
grommet ^2.15.0 | TextInputPropsTextInput | * |
grommet/utils ^2.15.0 | Omit | * |
react ^17.0.1 | React | * |
file | imports |
---|---|
"../WithFormField" | WithFormFieldIWithFormFieldProps |