Optional
ChipOptional
ListboxThe component used to render the listbox.
'ul'
Optional
ListboxProps applied to the Listbox element.
Optional
PaperThe component used to render the body of the popup.
Paper
Optional
PopperThe component used to position the popup.
Popper
Optional
aboutOptional
accessOptional
aria-Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
Optional
aria-Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
Optional
aria-Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
Optional
aria-Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
Optional
aria-Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
Optional
aria-Defines the total number of columns in a table, grid, or treegrid.
aria-colindex.
Optional
aria-Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
Optional
aria-Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
Optional
aria-Identifies the element (or elements) whose contents or presence are controlled by the current element.
aria-owns.
Optional
aria-Indicates the element that represents the current item within a container or set of related elements.
Optional
aria-Identifies the element (or elements) that describes the object.
aria-labelledby
Optional
aria-Identifies the element that provides a detailed, extended description for the object.
aria-describedby.
Optional
aria-Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
Optional
aria-Indicates what functions can be performed when a dragged object is released on the drop target.
in ARIA 1.1
Optional
aria-Identifies the element that provides an error message for the object.
Optional
aria-Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Optional
aria-Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
Optional
aria-Indicates an element's "grabbed" state in a drag-and-drop operation.
in ARIA 1.1
Optional
aria-Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Optional
aria-Indicates whether the element is exposed to an accessibility API.
aria-disabled.
Optional
aria-Indicates the entered value does not conform to the format expected by the application.
aria-errormessage.
Optional
aria-Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Optional
aria-Defines a string value that labels the current element.
aria-labelledby.
Optional
aria-Identifies the element (or elements) that labels the current element.
aria-describedby.
Optional
aria-Defines the hierarchical level of an element within a structure.
Optional
aria-Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
Optional
aria-Indicates whether an element is modal when displayed.
Optional
aria-Indicates whether a text box accepts multiple lines of input or only a single line.
Optional
aria-Indicates that the user may select more than one item from the current selectable descendants.
Optional
aria-Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
Optional
aria-Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
aria-controls.
Optional
aria-Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
Optional
aria-Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
aria-setsize.
Optional
aria-Indicates the current "pressed" state of toggle buttons.
Optional
aria-Indicates that the element is not editable, but is otherwise operable.
aria-disabled.
Optional
aria-Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
aria-atomic.
Optional
aria-Indicates that user input is required on the element before a form may be submitted.
Optional
aria-Defines a human-readable, author-localized description for the role of an element.
Optional
aria-Defines the total number of rows in a table, grid, or treegrid.
aria-rowindex.
Optional
aria-Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
Optional
aria-Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
Optional
aria-Indicates the current "selected" state of various widgets.
Optional
aria-Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
aria-posinset.
Optional
aria-Indicates if items in a table or grid are sorted in ascending or descending order.
Optional
aria-Defines the maximum allowed value for a range widget.
Optional
aria-Defines the minimum allowed value for a range widget.
Optional
aria-Defines the current value for a range widget.
aria-valuetext.
Optional
aria-Defines the human readable text alternative of aria-valuenow for a range widget.
Optional
autoOptional
autoIf true
, the portion of the selected suggestion that has not been typed by the user,
known as the completion string, appears inline after the input cursor in the textbox.
The inline completion string is visually highlighted and has a selected state.
false
Optional
autoOptional
autoIf true
, the first option is automatically highlighted.
false
Optional
autoOptional
autoIf true
, the selected option becomes the value of the input
when the Autocomplete loses focus unless the user chooses
a different option or changes the character string in the input.
false
Optional
blurControl if the input should be blurred when an option is selected:
false
the input is not blurred.true
the input is always blurred.touch
the input is blurred after a touch event.mouse
the input is blurred after a mouse event.false
Optional
classOptional
classesOverride or extend the styles applied to the component.
Optional
clearThe icon to display in place of the default clear icon.
Optional
clearIf true
, the input's text is cleared on blur if no value is selected.
Set to true
if you want to help the user enter a new value.
Set to false
if you want to help the user resume their search.
!props.freeSolo
Optional
clearIf true
, clear all values when the user presses escape and the popup is closed.
false
Optional
clearOverride the default text for the clear icon button.
For localization purposes, you can use the provided translations.
'Clear'
Optional
closeOverride the default text for the close popup icon button.
For localization purposes, you can use the provided translations.
'Close'
Optional
colorOptional
componentThe component name that is using this hook. Used for warnings.
Optional
componentsThe props used for each slot inside.
Optional
clearOptional
paper?: PaperProps<"div", {}>Optional
popper?: Partial<PopperProps>Optional
popupOptional
contentOptional
contextOptional
dangerouslyOptional
datatypeOptional
defaultOptional
defaultThe default value. Use when the component is not controlled.
props.multiple ? [] : null
Optional
dirOptional
disableIf true
, the input can't be cleared.
false
Optional
disableIf true
, the popup won't close when a value is selected.
false
Optional
disableIf true
, the list box in the popup will not wrap focus.
false
Optional
disableIf true
, the Popper
content will be under the DOM hierarchy of the parent component.
false
Optional
disabledIf true
, the component is disabled.
false
Optional
disabledIf true
, will allow focus on disabled items.
false
Optional
draggableOptional
filterOptional
filterIf true
, hide the selected options from the list box.
false
Optional
forceForce the visibility display of the popup icon.
'auto'
Optional
freeIf true
, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
false
Optional
fullIf true
, the input will take up the full width of its container.
false
Optional
getThe label to display when the tags are truncated (limitTags
).
(more) => +${more}
The number of truncated tags.
Optional
getOptional
getUsed to determine the string value for a given option.
It's used to fill the input (and the list box options if renderOption
is not provided).
If used in free solo mode, it must accept both the type of the options and a string.
(option) => option.label ?? option
Optional
groupOptional
handleIf true
, the component handles the "Home" and "End" keys when the popup is open.
It should move focus to the first option and last option, respectively.
!props.freeSolo
Optional
hiddenOptional
idThis prop is used to help implement the accessibility logic. If you don't provide an id it will fall back to a randomly generated one.
Optional
includeIf true
, the highlight can move to the input.
false
Optional
inlistOptional
inputPlaceholder text displayed in the text field.
"City, county, state, or district"
Optional
inputHints at the type of data that might be entered by the user while editing the element or its contents
https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
Optional
inputThe input value.
Optional
isSpecify that a standard HTML element should behave like a defined custom built-in element
https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
Optional
isOptional
itemIDOptional
itemOptional
itemOptional
itemOptional
itemOptional
langOptional
limitThe maximum number of tags that will be visible when not focused.
Set -1
to disable the limit.
-1
Optional
loadingIf true
, the component is in a loading state.
This shows the loadingText
in place of suggestions (only if there are no suggestions to show, e.g. options
are empty).
false
Optional
loadingText to display when in a loading state.
For localization purposes, you can use the provided translations.
'Loading…'
Optional
multipleIf true
, value
must be an array and the menu will support multiple selections.
false
Optional
noText to display when there are no options.
For localization purposes, you can use the provided translations.
'No options'
Optional
nonceOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onCallback fired when the popup requests to be closed. Use in controlled mode (see open).
The event source of the callback.
Can be: "toggleInput"
, "escape"
, "selectOption"
, "removeOption"
, "blur"
.
Optional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onCallback fired when the highlight option changes.
The event source of the callback.
The highlighted option.
Can be: "keyboard"
, "auto"
, "mouse"
.
Optional
onOptional
onOptional
onCallback fired when the input value changes.
The event source of the callback.
The new value of the text input.
Can be: "input"
(user input), "reset"
(programmatic change), "clear"
.
Optional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onCallback fired when the popup requests to be opened. Use in controlled mode (see open).
The event source of the callback.
Optional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
openIf true
, the component is shown.
Optional
openIf true
, the popup will open on input focus.
false
Optional
openOverride the default text for the open popup icon button.
For localization purposes, you can use the provided translations.
'Open'
Array of options.
Optional
placeholderOptional
popupThe icon to display in place of the default popup icon.
Optional
prefixOptional
propertyOptional
radioOptional
readIf true
, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
false
Optional
refRegionDB instance to use.
Optional
renderRender the group.
The group to render.
Optional
renderFunction that renders the input. See https://mui.com/material-ui/api/autocomplete/#props
Optional
renderRender the option, use getOptionLabel
by default.
The props to apply on the li element.
The option to render.
The state of the component.
Optional
renderOptional
resourceOptional
resultsOptional
roleOptional
securityOptional
selectIf true
, the input's text is selected on focus.
It helps the user clear the selected value.
!props.freeSolo
Optional
sizeThe size of the component.
'medium'
Optional
slotOptional
slotThe props used for each slot inside.
Optional
clearOptional
paper?: PaperProps<"div", {}>Optional
popper?: Partial<PopperProps>Optional
popupOptional
spellOptional
styleOptional
suppressOptional
suppressOptional
sxThe system prop that allows defining system overrides as well as additional CSS styles.
Optional
tabOptional
titleOptional
translateOptional
typeofOptional
unselectableOptional
Internal
unstable_The prefix of the state class name, temporary for Joy UI
'Mui'
Optional
unstable_Internal
Temporary for Joy UI because the parent listbox is the document object TODO v6: Normalize the logic and remove this param.
Optional
valueThe value of the autocomplete.
The value must have reference equality with the option in order to be selected.
You can customize the equality behavior with the isOptionEqualToValue
prop.
Optional
vocabGenerated using TypeDoc
Props applied to the
Chip
element.