Edit page

Chip Input

Base on Auto Complete

Related component

  • Auto Complete

Basic usage

import { ChipInput } from '@doopage/react-ui-kit'
const Example = () => <ChipInput label={'Chip Input'}/>;
export default Example;

Playground

Normal

Advanced

Value: default value, llll

Properties

Prop nameTypeDefaultRequiredDescription
hideboolean | undefinedfalse
loadingboolean | undefinedfalse

If true, the component is in a loading state.

inputPropsInputProps | undefinedfalse
optionsMenuItemProps[] | undefinedfalse
labelstring | undefinedfalse
placeholderstring | undefinedfalse
errorstring | undefinedfalse
helperTextstring | undefinedfalse
variant"outlined" | "standard" | "filled" | undefinedfalse
chipColor"info" | "success" | "danger" | "warning" | "primary" | "white" | "rose" | "gray" | undefinedfalse
onChange((id: string, value: any) => void) | undefinedfalse
getData((value: string) => void) | undefinedfalse
setCreateText((inputValue: string) => string) | undefinedfalse
allowCreateboolean | undefinedfalse
chipPropsChipProps | undefinedfalse
allowDuplicatesboolean | undefinedfalse
showCreateTextboolean | undefinedfalse
createOnBlurboolean | undefinedfalse
titlestring | undefinedfalse
disabledboolean | undefinedfalse

If true, the input will be disabled.

classesPartial<Record<AutocompleteClassKey, string>> | undefinedfalse

Override or extend the styles applied to the component.

defaultCheckedboolean | undefinedfalse
defaultValueanyfalse

The default input value. Use when the component is not controlled.

suppressContentEditableWarningboolean | undefinedfalse
suppressHydrationWarningboolean | undefinedfalse
accessKeystring | undefinedfalse
classNamestring | undefinedfalse
contentEditableboolean | "true" | "false" | "inherit" | undefinedfalse
contextMenustring | undefinedfalse
dirstring | undefinedfalse
draggableboolean | "true" | "false" | undefinedfalse
hiddenboolean | undefinedfalse
idstring | undefinedfalse

This prop is used to help implement the accessibility logic. If you don’t provide this prop. It falls back to a randomly generated id.

langstring | undefinedfalse
slotstring | undefinedfalse
spellCheckboolean | "true" | "false" | undefinedfalse
styleCSSProperties | undefinedfalse
tabIndexnumber | undefinedfalse
translate"yes" | "no" | undefinedfalse
radioGroupstring | undefinedfalse
rolestring | undefinedfalse
aboutstring | undefinedfalse
datatypestring | undefinedfalse
inlistanyfalse
prefixstring | undefinedfalse
propertystring | undefinedfalse
resourcestring | undefinedfalse
typeofstring | undefinedfalse
vocabstring | undefinedfalse
autoCapitalizestring | undefinedfalse
autoCorrectstring | undefinedfalse
autoSavestring | undefinedfalse
colorstring | undefinedfalse
itemPropstring | undefinedfalse
itemScopeboolean | undefinedfalse
itemTypestring | undefinedfalse
itemIDstring | undefinedfalse
itemRefstring | undefinedfalse
resultsnumber | undefinedfalse
securitystring | undefinedfalse
unselectable"on" | "off" | undefinedfalse
inputMode"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefinedfalse

Hints at the type of data that might be entered by the user while editing the element or its contents @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

isstring | undefinedfalse

Specify that a standard HTML element should behave like a defined custom built-in element @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

aria-activedescendantstring | undefinedfalse

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

aria-atomicboolean | "true" | "false" | undefinedfalse

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.

aria-autocomplete"none" | "inline" | "list" | "both" | undefinedfalse

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.

aria-busyboolean | "true" | "false" | undefinedfalse

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.

aria-checkedboolean | "true" | "false" | "mixed" | undefinedfalse

Indicates the current “checked” state of checkboxes, radio buttons, and other widgets. @see aria-pressed @see aria-selected.

aria-colcountnumber | undefinedfalse

Defines the total number of columns in a table, grid, or treegrid. @see aria-colindex.

aria-colindexnumber | undefinedfalse

Defines an element’s column index or position with respect to the total number of columns within a table, grid, or treegrid. @see aria-colcount @see aria-colspan.

aria-colspannumber | undefinedfalse

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-colindex @see aria-rowspan.

aria-controlsstring | undefinedfalse

Identifies the element (or elements) whose contents or presence are controlled by the current element. @see aria-owns.

aria-currentboolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefinedfalse

Indicates the element that represents the current item within a container or set of related elements.

aria-describedbystring | undefinedfalse

Identifies the element (or elements) that describes the object. @see aria-labelledby

aria-detailsstring | undefinedfalse

Identifies the element that provides a detailed, extended description for the object. @see aria-describedby.

aria-disabledboolean | "true" | "false" | undefinedfalse

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. @see aria-hidden @see aria-readonly.

aria-dropeffect"none" | "copy" | "execute" | "link" | "move" | "popup" | undefinedfalse

Indicates what functions can be performed when a dragged object is released on the drop target. @deprecated in ARIA 1.1

aria-errormessagestring | undefinedfalse

Identifies the element that provides an error message for the object. @see aria-invalid @see aria-describedby.

aria-expandedboolean | "true" | "false" | undefinedfalse

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

aria-flowtostring | undefinedfalse

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.

aria-grabbedboolean | "true" | "false" | undefinedfalse

Indicates an element’s “grabbed” state in a drag-and-drop operation. @deprecated in ARIA 1.1

aria-haspopupboolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefinedfalse

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

aria-hiddenboolean | "true" | "false" | undefinedfalse

Indicates whether the element is exposed to an accessibility API. @see aria-disabled.

aria-invalidboolean | "true" | "false" | "grammar" | "spelling" | undefinedfalse

Indicates the entered value does not conform to the format expected by the application. @see aria-errormessage.

aria-keyshortcutsstring | undefinedfalse

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

aria-labelstring | undefinedfalse

Defines a string value that labels the current element. @see aria-labelledby.

aria-labelledbystring | undefinedfalse

Identifies the element (or elements) that labels the current element. @see aria-describedby.

aria-levelnumber | undefinedfalse

Defines the hierarchical level of an element within a structure.

aria-live"off" | "assertive" | "polite" | undefinedfalse

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.

aria-modalboolean | "true" | "false" | undefinedfalse

Indicates whether an element is modal when displayed.

aria-multilineboolean | "true" | "false" | undefinedfalse

Indicates whether a text box accepts multiple lines of input or only a single line.

aria-multiselectableboolean | "true" | "false" | undefinedfalse

Indicates that the user may select more than one item from the current selectable descendants.

aria-orientation"horizontal" | "vertical" | undefinedfalse

Indicates whether the element’s orientation is horizontal, vertical, or unknown/ambiguous.

aria-ownsstring | undefinedfalse

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. @see aria-controls.

aria-placeholderstring | undefinedfalse

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.

aria-posinsetnumber | undefinedfalse

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. @see aria-setsize.

aria-pressedboolean | "true" | "false" | "mixed" | undefinedfalse

Indicates the current “pressed” state of toggle buttons. @see aria-checked @see aria-selected.

aria-readonlyboolean | "true" | "false" | undefinedfalse

Indicates that the element is not editable, but is otherwise operable. @see aria-disabled.

aria-relevant"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefinedfalse

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. @see aria-atomic.

aria-requiredboolean | "true" | "false" | undefinedfalse

Indicates that user input is required on the element before a form may be submitted.

aria-roledescriptionstring | undefinedfalse

Defines a human-readable, author-localized description for the role of an element.

aria-rowcountnumber | undefinedfalse

Defines the total number of rows in a table, grid, or treegrid. @see aria-rowindex.

aria-rowindexnumber | undefinedfalse

Defines an element’s row index or position with respect to the total number of rows within a table, grid, or treegrid. @see aria-rowcount @see aria-rowspan.

aria-rowspannumber | undefinedfalse

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-rowindex @see aria-colspan.

aria-selectedboolean | "true" | "false" | undefinedfalse

Indicates the current “selected” state of various widgets. @see aria-checked @see aria-pressed.

aria-setsizenumber | undefinedfalse

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. @see aria-posinset.

aria-sort"none" | "ascending" | "descending" | "other" | undefinedfalse

Indicates if items in a table or grid are sorted in ascending or descending order.

aria-valuemaxnumber | undefinedfalse

Defines the maximum allowed value for a range widget.

aria-valueminnumber | undefinedfalse

Defines the minimum allowed value for a range widget.

aria-valuenownumber | undefinedfalse

Defines the current value for a range widget. @see aria-valuetext.

aria-valuetextstring | undefinedfalse

Defines the human readable text alternative of aria-valuenow for a range widget.

dangerouslySetInnerHTML{ __html: string; } | undefinedfalse
onCopy((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCopyCapture((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCut((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCutCapture((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onPaste((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onPasteCapture((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionEnd((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionEndCapture((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionStart((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionStartCapture((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionUpdate((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionUpdateCapture((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onFocus((event: FocusEvent<HTMLDivElement>) => void) | undefinedfalse
onFocusCapture((event: FocusEvent<HTMLDivElement>) => void) | undefinedfalse
onBlur((event: FocusEvent<HTMLDivElement>) => void) | undefinedfalse
onBlurCapture((event: FocusEvent<HTMLDivElement>) => void) | undefinedfalse
onChangeCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onBeforeInput((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onBeforeInputCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInput((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInputCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onReset((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onResetCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onSubmit((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onSubmitCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInvalid((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInvalidCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onLoad((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onError((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onErrorCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onKeyDown((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyDownCapture((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyPress((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyPressCapture((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyUp((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyUpCapture((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onAbort((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onAbortCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlay((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlayCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlayThrough((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlayThroughCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onDurationChange((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onDurationChangeCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEmptied((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEmptiedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEncrypted((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEncryptedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEnded((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEndedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedData((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedDataCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedMetadata((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedMetadataCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadStart((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadStartCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPause((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPauseCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlay((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlayCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlaying((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlayingCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onProgress((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onProgressCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onRateChange((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onRateChangeCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeeked((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeekedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeeking((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeekingCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onStalled((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onStalledCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSuspend((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSuspendCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onTimeUpdate((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onTimeUpdateCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onVolumeChange((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onVolumeChangeCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onWaiting((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onWaitingCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onAuxClick((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onAuxClickCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onClick((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onClickCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onContextMenu((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onContextMenuCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onDoubleClick((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onDoubleClickCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onDrag((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEnd((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEndCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEnter((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEnterCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragExit((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragExitCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragLeave((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragLeaveCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragOver((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragOverCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragStart((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragStartCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDrop((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDropCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onMouseDown((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseDownCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseEnter((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseLeave((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseMove((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseMoveCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOut((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOutCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOver((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOverCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseUp((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseUpCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onSelect((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSelectCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onTouchCancel((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchCancelCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchEnd((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchEndCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchMove((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchMoveCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchStart((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchStartCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerDown((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerDownCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerMove((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerMoveCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerUp((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerUpCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerCancel((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerCancelCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerEnter((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerEnterCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerLeave((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerLeaveCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOver((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOverCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOut((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOutCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onGotPointerCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onGotPointerCaptureCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onLostPointerCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onLostPointerCaptureCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onScroll((event: UIEvent<HTMLDivElement, UIEvent>) => void) | undefinedfalse
onScrollCapture((event: UIEvent<HTMLDivElement, UIEvent>) => void) | undefinedfalse
onWheel((event: WheelEvent<HTMLDivElement>) => void) | undefinedfalse
onWheelCapture((event: WheelEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationStart((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationStartCapture((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationEnd((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationEndCapture((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationIteration((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationIterationCapture((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onTransitionEnd((event: TransitionEvent<HTMLDivElement>) => void) | undefinedfalse
onTransitionEndCapture((event: TransitionEvent<HTMLDivElement>) => void) | undefinedfalse
innerRef((instance: any) => void) | RefObject<any> | null | undefinedfalse
ref((instance: unknown) => void) | RefObject<unknown> | null | undefinedfalse
ChipPropsobject | undefinedfalse

Props applied to the Chip element.

closeIconReactNodefalse

The icon to display in place of the default close icon.

clearTextstring | undefinedfalse

Override the default text for the clear icon button.

For localization purposes, you can use the provided translations.

closeTextstring | undefinedfalse

Override the default text for the close popup icon button.

For localization purposes, you can use the provided translations.

disablePortalboolean | undefinedfalse

Disable the portal behavior. The children stay within it’s parent DOM hierarchy.

forcePopupIconboolean | "auto" | undefinedfalse

Force the visibility display of the popup icon.

fullWidthboolean | undefinedfalse

If true, the input will take up the full width of its container.

getLimitTagsText((more: number) => ReactNode) | undefinedfalse

The label to display when the tags are truncated (limitTags). @param more The number of truncated tags. @returns

ListboxComponentComponentClass<HTMLAttributes<HTMLElement>, any> | FunctionComponent<HTMLAttributes<HTMLElement>> | undefinedfalse

The component used to render the listbox.

ListboxPropsobject | undefinedfalse

Props applied to the Listbox element.

loadingTextReactNodefalse

Text to display when in a loading state.

For localization purposes, you can use the provided translations.

limitTagsnumber | undefinedfalse

The maximum number of tags that will be visible when not focused. Set -1 to disable the limit.

noOptionsTextReactNodefalse

Text to display when there are no options.

For localization purposes, you can use the provided translations.

openTextstring | undefinedfalse

Override the default text for the open popup icon button.

For localization purposes, you can use the provided translations.

PaperComponentComponentClass<HTMLAttributes<HTMLElement>, any> | FunctionComponent<HTMLAttributes<HTMLElement>> | undefinedfalse

The component used to render the body of the popup.

PopperComponentComponentClass<PopperProps, any> | FunctionComponent<PopperProps> | undefinedfalse

The component used to position the popup.

popupIconReactNodefalse

The icon to display in place of the default popup icon.

renderGroup((params: AutocompleteRenderGroupParams) => ReactNode) | undefinedfalse

Render the group. @param option The group to render. @returns

renderOption((option: any, state: AutocompleteRenderOptionState) => ReactNode) | undefinedfalse

Render the option, use getOptionLabel by default. @param option The option to render. @param state The state of the component. @returns

renderTags((value: any[], getTagProps: AutocompleteGetTagProps) => ReactNode) | undefinedfalse

Render the selected value. @param value The value provided to the component. @param getTagProps A tag props getter. @returns

size"small" | "medium" | undefinedfalse

The size of the autocomplete.

autoCompleteboolean | undefinedfalse

If 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.

autoHighlightboolean | undefinedfalse

If true, the first option is automatically highlighted.

autoSelectboolean | undefinedfalse

If 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.

blurOnSelectboolean | "mouse" | "touch" | undefinedfalse

Control 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.
clearOnBlurboolean | undefinedfalse

If true, the input’s text will be 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 his search.

clearOnEscapeboolean | undefinedfalse

If true, clear all values when the user presses escape and the popup is closed.

componentNamestring | undefinedfalse

The component name that is using this hook. Used for warnings.

debugboolean | undefinedfalse

If true, the popup will ignore the blur event if the input is filled. You can inspect the popup markup with your browser tools. Consider this option when you need to customize the component.

disableClearableanyfalse

If true, the input can’t be cleared.

disableCloseOnSelectboolean | undefinedfalse

If true, the popup won’t close when a value is selected.

disabledItemsFocusableboolean | undefinedfalse

If true, will allow focus on disabled items.

disableListWrapboolean | undefinedfalse

If true, the list box in the popup will not wrap focus.

filterOptions((options: any[], state: FilterOptionsState<any>) => any[]) | undefinedfalse

A filter function that determines the options that are eligible. @param options The options to render. @param state The state of the component. @returns

filterSelectedOptionsboolean | undefinedfalse

If true, hide the selected options from the list box.

freeSoloanyfalse

If true, the Autocomplete is free solo, meaning that the user input is not bound to provided options.

getOptionDisabled((option: any) => boolean) | undefinedfalse

Used to determine the disabled state for a given option. @param option The option to test. @returns

getOptionLabel((option: any) => string) | undefinedfalse

Used 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). @param option @returns

getOptionSelected((option: any, value: any) => boolean) | undefinedfalse

Used to determine if an option is selected, considering the current value. Uses strict equality by default. @param option The option to test. @param value The value to test against. @returns

groupBy((option: any) => string) | undefinedfalse

If provided, the options will be grouped under the returned string. The groupBy value is also used as the text for group headings when renderGroup is not provided. @param options The options to group. @returns

handleHomeEndKeysboolean | undefinedfalse

If 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.

includeInputInListboolean | undefinedfalse

If true, the highlight can move to the input.

inputValuestring | undefinedfalse

The input value.

onClose((event: ChangeEvent<{}>, reason: AutocompleteCloseReason) => void) | undefinedfalse

Callback fired when the popup requests to be closed. Use in controlled mode (see open). @param event The event source of the callback. @param reason Can be: "toggleInput", "escape", "select-option", "blur".

onInputChange((event: ChangeEvent<{}>, value: string, reason: AutocompleteInputChangeReason) => void) | undefinedfalse

Callback fired when the input value changes. @param event The event source of the callback. @param value The new value of the text input. @param reason Can be: "input" (user input), "reset" (programmatic change), "clear".

onOpen((event: ChangeEvent<{}>) => void) | undefinedfalse

Callback fired when the popup requests to be opened. Use in controlled mode (see open). @param event The event source of the callback.

onHighlightChange((event: ChangeEvent<{}>, option: any, reason: AutocompleteHighlightChangeReason) => void) | undefinedfalse

Callback fired when the highlight option changes. @param event The event source of the callback. @param option The highlighted option. @param reason Can be: "keyboard", "auto", "mouse".

openboolean | undefinedfalse

Control the popup` open state.

openOnFocusboolean | undefinedfalse

If true, the popup will open on input focus.

selectOnFocusboolean | undefinedfalse

If true, the input’s text will be selected on focus. It helps the user clear the selected value.

multipleanyfalse

If true, value must be an array and the menu will support multiple selections.

valueanyfalse

The 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 getOptionSelected prop.