Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AutoCompleteProps

Hierarchy

Index

Properties

Methods

Properties

Optional about

about: string

Optional accept

accept: string

Optional accessKey

accessKey: string

Optional afterResultsChildren

afterResultsChildren: ReactNode

Any optional children to display after the matched results in the autocomplete's menu. This should normally be for any presentational data or things that should not be searchable.

remarks

@since 2.1.0

Optional alt

alt: string

Optional anchor

anchor: Partial<PositionAnchor>

The configuration to anchor the fixed element to the container element.

Optional aria-activedescendant

aria-activedescendant: string

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

Optional aria-atomic

aria-atomic: boolean | "true" | "false"

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-autocomplete

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

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-busy

aria-busy: boolean | "true" | "false"

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-checked

aria-checked: boolean | "true" | "false" | "mixed"

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.

see

aria-pressed @see aria-selected.

Optional aria-colcount

aria-colcount: number

Defines the total number of columns in a table, grid, or treegrid.

see

aria-colindex.

Optional aria-colindex

aria-colindex: number

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.

Optional aria-colspan

aria-colspan: number

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

see

aria-colindex @see aria-rowspan.

Optional aria-controls

aria-controls: string

Identifies the element (or elements) whose contents or presence are controlled by the current element.

see

aria-owns.

Optional aria-current

aria-current: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"

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

Optional aria-describedby

aria-describedby: string

Identifies the element (or elements) that describes the object.

see

aria-labelledby

Optional aria-details

aria-details: string

Identifies the element that provides a detailed, extended description for the object.

see

aria-describedby.

Optional aria-disabled

aria-disabled: boolean | "true" | "false"

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

see

aria-hidden @see aria-readonly.

Optional aria-dropeffect

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

Indicates what functions can be performed when a dragged object is released on the drop target.

deprecated

in ARIA 1.1

Optional aria-errormessage

aria-errormessage: string

Identifies the element that provides an error message for the object.

see

aria-invalid @see aria-describedby.

Optional aria-expanded

aria-expanded: boolean | "true" | "false"

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

Optional aria-flowto

aria-flowto: string

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-grabbed

aria-grabbed: boolean | "true" | "false"

Indicates an element's "grabbed" state in a drag-and-drop operation.

deprecated

in ARIA 1.1

Optional aria-haspopup

aria-haspopup: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"

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

Optional aria-hidden

aria-hidden: boolean | "true" | "false"

Indicates whether the element is exposed to an accessibility API.

see

aria-disabled.

Optional aria-invalid

aria-invalid: boolean | "true" | "false" | "grammar" | "spelling"

Indicates the entered value does not conform to the format expected by the application.

see

aria-errormessage.

Optional aria-keyshortcuts

aria-keyshortcuts: string

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

Optional aria-label

aria-label: string

Defines a string value that labels the current element.

see

aria-labelledby.

Optional aria-labelledby

aria-labelledby: string

Identifies the element (or elements) that labels the current element.

see

aria-describedby.

Optional aria-level

aria-level: number

Defines the hierarchical level of an element within a structure.

Optional aria-live

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

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-modal

aria-modal: boolean | "true" | "false"

Indicates whether an element is modal when displayed.

Optional aria-multiline

aria-multiline: boolean | "true" | "false"

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

Optional aria-multiselectable

aria-multiselectable: boolean | "true" | "false"

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

Optional aria-orientation

aria-orientation: "horizontal" | "vertical"

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

Optional aria-owns

aria-owns: string

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.

Optional aria-placeholder

aria-placeholder: string

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-posinset

aria-posinset: number

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.

Optional aria-pressed

aria-pressed: boolean | "true" | "false" | "mixed"

Indicates the current "pressed" state of toggle buttons.

see

aria-checked @see aria-selected.

Optional aria-readonly

aria-readonly: boolean | "true" | "false"

Indicates that the element is not editable, but is otherwise operable.

see

aria-disabled.

Optional aria-relevant

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

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

see

aria-atomic.

Optional aria-required

aria-required: boolean | "true" | "false"

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

Optional aria-roledescription

aria-roledescription: string

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

Optional aria-rowcount

aria-rowcount: number

Defines the total number of rows in a table, grid, or treegrid.

see

aria-rowindex.

Optional aria-rowindex

aria-rowindex: number

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.

Optional aria-rowspan

aria-rowspan: number

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

see

aria-rowindex @see aria-colspan.

Optional aria-selected

aria-selected: boolean | "true" | "false"

Indicates the current "selected" state of various widgets.

see

aria-checked @see aria-pressed.

Optional aria-setsize

aria-setsize: number

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.

Optional aria-sort

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

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

Optional aria-valuemax

aria-valuemax: number

Defines the maximum allowed value for a range widget.

Optional aria-valuemin

aria-valuemin: number

Defines the minimum allowed value for a range widget.

Optional aria-valuenow

aria-valuenow: number

Defines the current value for a range widget.

see

aria-valuetext.

Optional aria-valuetext

aria-valuetext: string

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

Optional autoCapitalize

autoCapitalize: string

Optional autoComplete

autoComplete: AutoCompletion
see

AutoCompletion

Optional autoCorrect

autoCorrect: string

Optional autoFocus

autoFocus: boolean

Optional autoSave

autoSave: string

Optional beforeResultsChildren

beforeResultsChildren: ReactNode

Any optional children to display before the matched results in the autocomplete's menu. This should normally be for any presentational data or things that should not be searchable.

remarks

@since 2.1.0

Optional capture

capture: string | boolean

Optional checked

checked: boolean

Optional children

children: ReactNode

Optional className

className: string

Optional clearOnAutoComplete

clearOnAutoComplete: boolean

Boolean if the text field's value should be cleared when the value is autocompleted. This is useful when also adding custom onAutoComplete behavior.

Optional closeOnResize

closeOnResize: boolean

Boolean if the select's listbox should not hide if the user resizes the browser while it is visible.

Optional closeOnScroll

closeOnScroll: boolean

Boolean if the select's listbox should not hide if the user scrolls the page while it is visible.

Optional color

color: string

Optional containerProps

containerProps: Omit<HTMLAttributes<HTMLDivElement>, "className" | "style">

Any additional html attributes that should be applied to the main container div. This is probably only going to be used internally so that additional accessibility can be added to text fields for more complex widgets.

Optional containerRef

containerRef: Ref<HTMLDivElement>

An optional ref to apply to the text field's container div element. The default ref is forwarded on to the input element.

Optional contentEditable

contentEditable: Booleanish | "inherit"

Optional contextMenu

contextMenu: string

Optional crossOrigin

crossOrigin: string

Optional dangerouslySetInnerHTML

dangerouslySetInnerHTML: { __html: string }

Type declaration

  • __html: string

data

data: readonly AutoCompleteData[]

The list of data that should be autocompleted based on the provided filter.

Optional datatype

datatype: string

Optional defaultChecked

defaultChecked: boolean

Optional defaultValue

defaultValue: string

The default value for the text field which will make it uncontrolled. If you manually change the defaultValue prop, the input's value will not change unless you provide a different key as well. Use the value prop instead for a controlled input.

Optional dense

dense: boolean

Boolean if the form components should be using the dense spec to reduce the sizing slightly.

Optional dir

dir: string

Optional disableShowOnFocus

disableShowOnFocus: boolean

Boolean if the list of suggestions should no longer appear immediately once the text field is focused and there is at least one item in the data list. If this is set to false, the menu will only be shown when:

  • a letter is added or removed from the text field
  • the user clicks it again
  • using the alt+arrow-down keyboard shortcut

If this prop is omitted, the show on focus behavior will be disabled on touch devices since touch device's soft keyboards do a lot of funky things with the viewport and scroll behavior. This makes it so the native viewport and scroll behavior actions are normally finished before the suggestions appear.

Optional disableSwapping

disableSwapping: boolean

Boolean if the auto-swapping behavior should be disabled. It's normally recommended to not disable this since it'll allow elements to appear off screen.

Optional disableVHBounds

disableVHBounds: boolean

Boolean if the fixed positioning should no longer prevent the fixed element to be positioned within the viewport. This is nice if you want to allow for full page scrolling instead and manually set a max-height on your element.

Optional disabled

disabled: boolean

Optional draggable

draggable: Booleanish

Optional enterKeyHint

enterKeyHint: "search" | "enter" | "next" | "done" | "go" | "previous" | "send"

Optional error

error: boolean

Boolean if the text field should gain the error state and update the colors.

Optional filter

see

AutoCompleteFilterFunction

Optional filterOnNoValue

filterOnNoValue: boolean

Boolean if the filter function should still be called when there is no value in the text field. This normally defaults to false so that the data is just returned, but it can be useful with a custom filter function that returns different data while there is no value.

Optional filterOptions

filterOptions: CaseInsensitiveOptions<AutoCompleteData>

An optional object of options to provide to the filter function. This will be defaulted to work with the fuzzy filter and case-insensitive filter functions to trim whitespace before doing the comparisons.

Optional form

form: string

Optional formAction

formAction: string

Optional formEncType

formEncType: string

Optional formMethod

formMethod: string

Optional formNoValidate

formNoValidate: boolean

Optional formTarget

formTarget: string

Optional height

height: string | number

Optional hidden

hidden: boolean

Optional highlight

highlight: boolean

Boolean if the result list labels should be updated so that each matching letter is bolded. This only works when the data list is a list of strings, or the label is a string and when the letters appear in order. This will always be false if the filter prop is set to "fuzzy".

Optional highlightClassName

highlightClassName: string

An optional className to apply to the <span> surrounding the matched text when the highlight prop is enabled.

Optional highlightReapeating

highlightReapeating: boolean

Boolean if the highlight functionality should no longer stop after the first match and instead highlight all matches of the search string within the label for an item.

Optional highlightStyle

highlightStyle: CSSProperties

An optional style to apply to the <span> surrounding the matched text when the highlight prop is enabled.

id

id: string

The id to use for the AutoComplete and is required for a11y to fulfill the combobox role. This id will be passed directly to the <input> element and prefixed for all the other id-required elements.

Optional initialX

initialX: number

The initial x value to use when calculating the position instead of finding the container element to determine the the correct position. All the other positioning logic will still be in effect to ensure the element will be visible within the viewport.

Optional initialY

initialY: number

The initial y value to use when calculating the position instead of finding the container element to determine the the correct position. All the other positioning logic will still be in effect to ensure the element will be visible within the viewport.

Optional inline

inline: boolean

Boolean if the component should be rendered inline with display: inline-flex instead of display: flex.

Optional inlist

inlist: any

Optional inputClassName

inputClassName: string

An optional className to apply to the input itself. The className prop will be applied to the container <div> instead.

Optional inputMode

inputMode: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"

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

Optional inputStyle

inputStyle: CSSProperties

An optional style to apply to the input itself. The style prop will be applied to the container <div> instead.

Optional is

is: string

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

Optional isLeftAddon

isLeftAddon: boolean

Boolean if the left children should be wrapped in the TextFieldAddon component. This is enabled by default since this is normally the behavior that is desired so that icons can be positioned correctly.

Optional isRightAddon

isRightAddon: boolean

Boolean if the right children should be wrapped in the TextFieldAddon component. This is enabled by default since this is normally the behavior that is desired so that icons can be positioned correctly.

Optional itemID

itemID: string

Optional itemProp

itemProp: string

Optional itemRef

itemRef: string

Optional itemScope

itemScope: boolean

Optional itemType

itemType: string

Optional label

label: ReactNode

An optional floating label to use for the text field. This should really only be used when the theme prop is not set to "none". This will be wrapped in the <Label> component itself and automatically apply the htmlFor prop for this text field.

Optional labelClassName

labelClassName: string

An optional className to apply to the label wrapper.

Optional labelKey

labelKey: string

The key to use to extract a label from a result when the provided data list is a list of objects.

Optional labelStyle

labelStyle: CSSProperties

An optional style to apply to the label wrapper.

Optional lang

lang: string

Optional leftChildren

leftChildren: ReactNode

An optional addon to apply to the left of the text field. This should normally be an icon. This element will not have pointer events so it can be "clicked through" to focus the text field instead.

Optional list

list: string

Optional listboxClassName

listboxClassName: string

An optional className to also apply to the listbox element showing all the matches.

Optional listboxStyle

listboxStyle: CSSProperties

An optional style to also apply to the listbox element showing all the matches.

Optional listboxWidth

listboxWidth: PositionWidth

The sizing behavior for the listbox. It will default to have the same width as the select button, but it is also possible to either have the min-width be the width of the select button or just automatically determine the width.

The sizing behavior will always ensure that the left and right bounds of the listbox appear within the viewport.

Optional max

max: string | number

Optional maxLength

maxLength: number

Optional min

min: string | number

Optional minLength

minLength: number

Optional multiple

multiple: boolean

Optional name

name: string

Optional omitKeys

omitKeys: readonly string[]

An optional list of keys that should be omitted from your data item before passing it to the suggestion Option. This is useful if you have additional metadata in your data objects that should not be passed as DOM attributes.

const item = { __id: 9432432, name: "Item", value: "guid" }

// don't want to pass `__id` to the Option
const omitKeys = ["__id"];

Optional onAbort

onAbort: ReactEventHandler<HTMLInputElement>

Optional onAbortCapture

onAbortCapture: ReactEventHandler<HTMLInputElement>

Optional onAnimationEnd

onAnimationEnd: AnimationEventHandler<HTMLInputElement>

Optional onAnimationEndCapture

onAnimationEndCapture: AnimationEventHandler<HTMLInputElement>

Optional onAnimationIteration

onAnimationIteration: AnimationEventHandler<HTMLInputElement>

Optional onAnimationIterationCapture

onAnimationIterationCapture: AnimationEventHandler<HTMLInputElement>

Optional onAnimationStart

onAnimationStart: AnimationEventHandler<HTMLInputElement>

Optional onAnimationStartCapture

onAnimationStartCapture: AnimationEventHandler<HTMLInputElement>

Optional onAutoComplete

onAutoComplete: AutoCompleteHandler
see

AutoCompleteHandler

Optional onAuxClick

onAuxClick: MouseEventHandler<HTMLInputElement>

Optional onAuxClickCapture

onAuxClickCapture: MouseEventHandler<HTMLInputElement>

Optional onBeforeInput

onBeforeInput: FormEventHandler<HTMLInputElement>

Optional onBeforeInputCapture

onBeforeInputCapture: FormEventHandler<HTMLInputElement>

Optional onBlur

onBlur: FocusEventHandler<HTMLInputElement>

Optional onBlurCapture

onBlurCapture: FocusEventHandler<HTMLInputElement>

Optional onCanPlay

onCanPlay: ReactEventHandler<HTMLInputElement>

Optional onCanPlayCapture

onCanPlayCapture: ReactEventHandler<HTMLInputElement>

Optional onCanPlayThrough

onCanPlayThrough: ReactEventHandler<HTMLInputElement>

Optional onCanPlayThroughCapture

onCanPlayThroughCapture: ReactEventHandler<HTMLInputElement>

Optional onChange

onChange: ChangeEventHandler<HTMLInputElement>

Optional onChangeCapture

onChangeCapture: FormEventHandler<HTMLInputElement>

Optional onClick

onClick: MouseEventHandler<HTMLInputElement>

Optional onClickCapture

onClickCapture: MouseEventHandler<HTMLInputElement>

Optional onCompositionEnd

onCompositionEnd: CompositionEventHandler<HTMLInputElement>

Optional onCompositionEndCapture

onCompositionEndCapture: CompositionEventHandler<HTMLInputElement>

Optional onCompositionStart

onCompositionStart: CompositionEventHandler<HTMLInputElement>

Optional onCompositionStartCapture

onCompositionStartCapture: CompositionEventHandler<HTMLInputElement>

Optional onCompositionUpdate

onCompositionUpdate: CompositionEventHandler<HTMLInputElement>

Optional onCompositionUpdateCapture

onCompositionUpdateCapture: CompositionEventHandler<HTMLInputElement>

Optional onContextMenu

onContextMenu: MouseEventHandler<HTMLInputElement>

Optional onContextMenuCapture

onContextMenuCapture: MouseEventHandler<HTMLInputElement>

Optional onCopy

onCopy: ClipboardEventHandler<HTMLInputElement>

Optional onCopyCapture

onCopyCapture: ClipboardEventHandler<HTMLInputElement>

Optional onCut

onCut: ClipboardEventHandler<HTMLInputElement>

Optional onCutCapture

onCutCapture: ClipboardEventHandler<HTMLInputElement>

Optional onDoubleClick

onDoubleClick: MouseEventHandler<HTMLInputElement>

Optional onDoubleClickCapture

onDoubleClickCapture: MouseEventHandler<HTMLInputElement>

Optional onDrag

onDrag: DragEventHandler<HTMLInputElement>

Optional onDragCapture

onDragCapture: DragEventHandler<HTMLInputElement>

Optional onDragEnd

onDragEnd: DragEventHandler<HTMLInputElement>

Optional onDragEndCapture

onDragEndCapture: DragEventHandler<HTMLInputElement>

Optional onDragEnter

onDragEnter: DragEventHandler<HTMLInputElement>

Optional onDragEnterCapture

onDragEnterCapture: DragEventHandler<HTMLInputElement>

Optional onDragExit

onDragExit: DragEventHandler<HTMLInputElement>

Optional onDragExitCapture

onDragExitCapture: DragEventHandler<HTMLInputElement>

Optional onDragLeave

onDragLeave: DragEventHandler<HTMLInputElement>

Optional onDragLeaveCapture

onDragLeaveCapture: DragEventHandler<HTMLInputElement>

Optional onDragOver

onDragOver: DragEventHandler<HTMLInputElement>

Optional onDragOverCapture

onDragOverCapture: DragEventHandler<HTMLInputElement>

Optional onDragStart

onDragStart: DragEventHandler<HTMLInputElement>

Optional onDragStartCapture

onDragStartCapture: DragEventHandler<HTMLInputElement>

Optional onDrop

onDrop: DragEventHandler<HTMLInputElement>

Optional onDropCapture

onDropCapture: DragEventHandler<HTMLInputElement>

Optional onDurationChange

onDurationChange: ReactEventHandler<HTMLInputElement>

Optional onDurationChangeCapture

onDurationChangeCapture: ReactEventHandler<HTMLInputElement>

Optional onEmptied

onEmptied: ReactEventHandler<HTMLInputElement>

Optional onEmptiedCapture

onEmptiedCapture: ReactEventHandler<HTMLInputElement>

Optional onEncrypted

onEncrypted: ReactEventHandler<HTMLInputElement>

Optional onEncryptedCapture

onEncryptedCapture: ReactEventHandler<HTMLInputElement>

Optional onEnded

onEnded: ReactEventHandler<HTMLInputElement>

Optional onEndedCapture

onEndedCapture: ReactEventHandler<HTMLInputElement>

Optional onError

onError: ReactEventHandler<HTMLInputElement>

Optional onErrorCapture

onErrorCapture: ReactEventHandler<HTMLInputElement>

Optional onFocus

onFocus: FocusEventHandler<HTMLInputElement>

Optional onFocusCapture

onFocusCapture: FocusEventHandler<HTMLInputElement>

Optional onGotPointerCapture

onGotPointerCapture: PointerEventHandler<HTMLInputElement>

Optional onGotPointerCaptureCapture

onGotPointerCaptureCapture: PointerEventHandler<HTMLInputElement>

Optional onInput

onInput: FormEventHandler<HTMLInputElement>

Optional onInputCapture

onInputCapture: FormEventHandler<HTMLInputElement>

Optional onInvalid

onInvalid: FormEventHandler<HTMLInputElement>

Optional onInvalidCapture

onInvalidCapture: FormEventHandler<HTMLInputElement>

Optional onKeyDown

onKeyDown: KeyboardEventHandler<HTMLInputElement>

Optional onKeyDownCapture

onKeyDownCapture: KeyboardEventHandler<HTMLInputElement>

Optional onKeyPress

onKeyPress: KeyboardEventHandler<HTMLInputElement>

Optional onKeyPressCapture

onKeyPressCapture: KeyboardEventHandler<HTMLInputElement>

Optional onKeyUp

onKeyUp: KeyboardEventHandler<HTMLInputElement>

Optional onKeyUpCapture

onKeyUpCapture: KeyboardEventHandler<HTMLInputElement>

Optional onLoad

onLoad: ReactEventHandler<HTMLInputElement>

Optional onLoadCapture

onLoadCapture: ReactEventHandler<HTMLInputElement>

Optional onLoadStart

onLoadStart: ReactEventHandler<HTMLInputElement>

Optional onLoadStartCapture

onLoadStartCapture: ReactEventHandler<HTMLInputElement>

Optional onLoadedData

onLoadedData: ReactEventHandler<HTMLInputElement>

Optional onLoadedDataCapture

onLoadedDataCapture: ReactEventHandler<HTMLInputElement>

Optional onLoadedMetadata

onLoadedMetadata: ReactEventHandler<HTMLInputElement>

Optional onLoadedMetadataCapture

onLoadedMetadataCapture: ReactEventHandler<HTMLInputElement>

Optional onLostPointerCapture

onLostPointerCapture: PointerEventHandler<HTMLInputElement>

Optional onLostPointerCaptureCapture

onLostPointerCaptureCapture: PointerEventHandler<HTMLInputElement>

Optional onMouseDown

onMouseDown: MouseEventHandler<HTMLInputElement>

Optional onMouseDownCapture

onMouseDownCapture: MouseEventHandler<HTMLInputElement>

Optional onMouseEnter

onMouseEnter: MouseEventHandler<HTMLInputElement>

Optional onMouseLeave

onMouseLeave: MouseEventHandler<HTMLInputElement>

Optional onMouseMove

onMouseMove: MouseEventHandler<HTMLInputElement>

Optional onMouseMoveCapture

onMouseMoveCapture: MouseEventHandler<HTMLInputElement>

Optional onMouseOut

onMouseOut: MouseEventHandler<HTMLInputElement>

Optional onMouseOutCapture

onMouseOutCapture: MouseEventHandler<HTMLInputElement>

Optional onMouseOver

onMouseOver: MouseEventHandler<HTMLInputElement>

Optional onMouseOverCapture

onMouseOverCapture: MouseEventHandler<HTMLInputElement>

Optional onMouseUp

onMouseUp: MouseEventHandler<HTMLInputElement>

Optional onMouseUpCapture

onMouseUpCapture: MouseEventHandler<HTMLInputElement>

Optional onPaste

onPaste: ClipboardEventHandler<HTMLInputElement>

Optional onPasteCapture

onPasteCapture: ClipboardEventHandler<HTMLInputElement>

Optional onPause

onPause: ReactEventHandler<HTMLInputElement>

Optional onPauseCapture

onPauseCapture: ReactEventHandler<HTMLInputElement>

Optional onPlay

onPlay: ReactEventHandler<HTMLInputElement>

Optional onPlayCapture

onPlayCapture: ReactEventHandler<HTMLInputElement>

Optional onPlaying

onPlaying: ReactEventHandler<HTMLInputElement>

Optional onPlayingCapture

onPlayingCapture: ReactEventHandler<HTMLInputElement>

Optional onPointerCancel

onPointerCancel: PointerEventHandler<HTMLInputElement>

Optional onPointerCancelCapture

onPointerCancelCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerDown

onPointerDown: PointerEventHandler<HTMLInputElement>

Optional onPointerDownCapture

onPointerDownCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerEnter

onPointerEnter: PointerEventHandler<HTMLInputElement>

Optional onPointerEnterCapture

onPointerEnterCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerLeave

onPointerLeave: PointerEventHandler<HTMLInputElement>

Optional onPointerLeaveCapture

onPointerLeaveCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerMove

onPointerMove: PointerEventHandler<HTMLInputElement>

Optional onPointerMoveCapture

onPointerMoveCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerOut

onPointerOut: PointerEventHandler<HTMLInputElement>

Optional onPointerOutCapture

onPointerOutCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerOver

onPointerOver: PointerEventHandler<HTMLInputElement>

Optional onPointerOverCapture

onPointerOverCapture: PointerEventHandler<HTMLInputElement>

Optional onPointerUp

onPointerUp: PointerEventHandler<HTMLInputElement>

Optional onPointerUpCapture

onPointerUpCapture: PointerEventHandler<HTMLInputElement>

Optional onProgress

onProgress: ReactEventHandler<HTMLInputElement>

Optional onProgressCapture

onProgressCapture: ReactEventHandler<HTMLInputElement>

Optional onRateChange

onRateChange: ReactEventHandler<HTMLInputElement>

Optional onRateChangeCapture

onRateChangeCapture: ReactEventHandler<HTMLInputElement>

Optional onReset

onReset: FormEventHandler<HTMLInputElement>

Optional onResetCapture

onResetCapture: FormEventHandler<HTMLInputElement>

Optional onScroll

onScroll: UIEventHandler<HTMLInputElement>

Optional onScrollCapture

onScrollCapture: UIEventHandler<HTMLInputElement>

Optional onSeeked

onSeeked: ReactEventHandler<HTMLInputElement>

Optional onSeekedCapture

onSeekedCapture: ReactEventHandler<HTMLInputElement>

Optional onSeeking

onSeeking: ReactEventHandler<HTMLInputElement>

Optional onSeekingCapture

onSeekingCapture: ReactEventHandler<HTMLInputElement>

Optional onSelect

onSelect: ReactEventHandler<HTMLInputElement>

Optional onSelectCapture

onSelectCapture: ReactEventHandler<HTMLInputElement>

Optional onStalled

onStalled: ReactEventHandler<HTMLInputElement>

Optional onStalledCapture

onStalledCapture: ReactEventHandler<HTMLInputElement>

Optional onSubmit

onSubmit: FormEventHandler<HTMLInputElement>

Optional onSubmitCapture

onSubmitCapture: FormEventHandler<HTMLInputElement>

Optional onSuspend

onSuspend: ReactEventHandler<HTMLInputElement>

Optional onSuspendCapture

onSuspendCapture: ReactEventHandler<HTMLInputElement>

Optional onTimeUpdate

onTimeUpdate: ReactEventHandler<HTMLInputElement>

Optional onTimeUpdateCapture

onTimeUpdateCapture: ReactEventHandler<HTMLInputElement>

Optional onTouchCancel

onTouchCancel: TouchEventHandler<HTMLInputElement>

Optional onTouchCancelCapture

onTouchCancelCapture: TouchEventHandler<HTMLInputElement>

Optional onTouchEnd

onTouchEnd: TouchEventHandler<HTMLInputElement>

Optional onTouchEndCapture

onTouchEndCapture: TouchEventHandler<HTMLInputElement>

Optional onTouchMove

onTouchMove: TouchEventHandler<HTMLInputElement>

Optional onTouchMoveCapture

onTouchMoveCapture: TouchEventHandler<HTMLInputElement>

Optional onTouchStart

onTouchStart: TouchEventHandler<HTMLInputElement>

Optional onTouchStartCapture

onTouchStartCapture: TouchEventHandler<HTMLInputElement>

Optional onTransitionEnd

onTransitionEnd: TransitionEventHandler<HTMLInputElement>

Optional onTransitionEndCapture

onTransitionEndCapture: TransitionEventHandler<HTMLInputElement>

Optional onVolumeChange

onVolumeChange: ReactEventHandler<HTMLInputElement>

Optional onVolumeChangeCapture

onVolumeChangeCapture: ReactEventHandler<HTMLInputElement>

Optional onWaiting

onWaiting: ReactEventHandler<HTMLInputElement>

Optional onWaitingCapture

onWaitingCapture: ReactEventHandler<HTMLInputElement>

Optional onWheel

onWheel: WheelEventHandler<HTMLInputElement>

Optional onWheelCapture

onWheelCapture: WheelEventHandler<HTMLInputElement>

Optional pattern

pattern: string

Optional placeholder

placeholder: string

Optional portal

portal: boolean

Boolean if the portal should be used.

Optional portalInto

portalInto: PortalInto

Optional portalIntoId

portalIntoId: string

Optional prefix

prefix: string

Optional preventOverlap

preventOverlap: boolean

Boolean if the fixed element should no longer be able to overlap the container element. This is useful for autocomplete menus or other components that retain focus on the container element while the fixed element becomes visible.

Optional property

property: string

Optional radioGroup

radioGroup: string

Optional readOnly

readOnly: boolean

Optional required

required: boolean

Optional resource

resource: string

Optional results

results: number

Optional rightChildren

rightChildren: ReactNode

An optional addon to apply to the right of the text field. This should be a clickable button such as a password field toggle or a reset button for the field.

Optional role

role: AriaRole

Optional security

security: string

Optional size

size: number

Optional slot

slot: string

Optional spellCheck

spellCheck: Booleanish

Optional src

src: string

Optional step

step: string | number

Optional style

style: CSSProperties

Optional suppressContentEditableWarning

suppressContentEditableWarning: boolean

Optional suppressHydrationWarning

suppressHydrationWarning: boolean

Optional tabIndex

tabIndex: number

Optional theme

theme: FormTheme

The current theme type.

Optional title

title: string

Optional transformOrigin

transformOrigin: boolean

Boolean if the style object should include the transformOrigin value based on the x and y positions.

Optional translate

translate: "yes" | "no"

Optional typeof

typeof: string

Optional underlineDirection

underlineDirection: FormUnderlineDirection

The current underline direction.

Optional unselectable

unselectable: "on" | "off"

Optional value

value: string

The value to use for the text field. This will make the component controlled and require the onChange prop to be provided as well otherwise this will act as a read only text field.

Optional valueKey

valueKey: string

The key to use to extract a searchable value string from a result when the provided data list is a list of objects.

Optional vhMargin

vhMargin: number

The viewwidth margin to apply so that the element doesn't need to be directly on the screen edge.

Optional vocab

vocab: string

Optional vwMargin

vwMargin: number

The viewwidth margin to apply so that the element doesn't need to be directly on the screen edge.

Optional width

width: string | number

Optional xMargin

xMargin: number

The container width margin to apply so that the element doesn't need to be directly on the container's edge.

Optional yMargin

yMargin: number

The container height margin to apply so that the element doesn't need to be directly on the container's edge

Methods

Optional getResultId

  • getResultId(id: string, index: number): string
  • A function to call that will generate an id for each result in the autocomplete's listbox. These ids are required for a11y as it'll be used with the aria-activedescendant movement within the autocomplete.

    Parameters

    • id: string
    • index: number

    Returns string

Optional getResultLabel

  • getResultLabel(data: Readonly<AutoCompleteData>, labelKey: string, query: string): ReactNode
  • A function to call that will get a renderable label or children to display for a result in the autocomplete's list of results. The default behavior will be to return the result itself if it is a string, otherwise try to return the children or labelKey attribute if it is an object.

    Parameters

    Returns ReactNode

Optional getResultValue

  • A function to call that will extract a searchable value string from each result. This must return a string and will prevent the autocomplete from filtering data with the built in filter functions.

    Parameters

    Returns string

Generated using TypeDoc