Data Entry

Select

Select allows the user to enter and edit text.

When to use

Description to when to use

  • Option
  • Option
  • Option
Examples
  • Descripción de prueba

    Select de prueba

    Descripción de prueba

API
PropertyDescriptionTypeRequiredDefaultVersion
autoCompleteOne of the allowed types is selected for the component InputAutoComplete.InputAutoCompleteNooff2023.9.1
defaultValueDefault value of the input. Provide this if the input should be an uncontrolled component which tracks its current state internally; otherwise, use value.AnyNo-2023.9.1
descriptionAdditional hint text below the field.StringNo-2023.9.1
disabledWhether the input is disabled.BooleanNofalse2023.9.1
labelThe label associated with the field.StringNo-2023.9.1
leadingElement after the input text, within the input border.React.JSX.ElementNo-2023.9.1
nameField name.StringYes-2023.9.1
placeholderPlaceholder text for the input. If using this instead of a label (which is not recommended), be sure to provide an aria-label for screen reader users.StringNo-2023.9.1
requiredMarks the Field as required. If true, an asterisk will be appended to the label, and aria-required will be set on the Field's child.BooleanNofalse2023.9.1
statusA message about the validation state. By default, this is an error message, but it can be a success, warning, or custom message by setting validation state.StringNo-2023.9.1
trailingElement before the input text, within the input border.React.JSX.ElementNo-2023.9.1
typeOne of the allowed types is selected for the component InputType.InputTypeNotext2023.9.1
valueCurrent value of the input. Provide this if the input is a controlled component where you are maintaining its current state; otherwise, use defaultValue.AnyNo-2023.9.1
onChangeCallback when the user enters a value.React.ChangeEvent<HTMLInputElement>No-2023.9.1