Autocomplete
Please refer to MUI's official docs for more details on component's usage guide and API documentation.
Use the CustomTextField component in the
renderInput prop with the CustomAutocomplete
component to render a custom autocomplete. Use disabled and
readOnly props with the CustomAutocomplete
component for disabled and read-only autocomplete respectively.
Use variant={'filled' | 'standard'} prop with
TextField component in renderInput prop with
Autocomplete component for different variants of input. Use
disabled prop with Autocomplete component for disabled autocomplete.
Use value prop with CustomAutocomplete
component for controlled autocomplete input.
Each of the following examples demonstrate one feature of
Autocomplete component.
Choose one of the countries.
Use freeSolo prop so the textbox can contain any arbitrary value.
You can create an option other than from the list.
Use groupBy prop to group the list according to your needs.
Use getOptionDisabled prop to disable some options from the list.
You can fix an option in the input and add any other option as well.
Use multiple prop to select multiple options from the list.
Use Checkbox component in renderOption prop to render checkbox in options.
Use limitTags prop to limit tags in the input.
Use size='medium' prop for medium sized input.
Use renderInput prop to customize the rendered input.
Use filterOptions prop to filter the search according to your needs.