AutoComplete API
API documentation for AutoComplete component
AutoCompleteRoot#
Props#
Defines valid properties in AutoComplete component.
State#
Defines valid state in AutoComplete component.
Exposes#
Defines the methods and properties exposed by AutoComplete component.
Events#
AutoCompleteValueChangeEvent
Event fired when the autocomplete's value changes.
| name | type | description |
|---|---|---|
| value | string | The new value of the autocomplete. |
| option | unknown | The selected option. |
| originalEvent | SyntheticEvent | The original event that triggered the change. |
AutoCompleteInputValueChangeEvent
Event fired when the autocomplete's input value changes.
| name | type | description |
|---|---|---|
| query | string | The current input value. |
| originalEvent | SyntheticEvent | The original event that triggered the change. |
AutoCompleteCompleteEvent
Event fired when the autocomplete's search is completed.
| name | type | description |
|---|---|---|
| query | string | The current query string. |
| originalEvent | SyntheticEvent | The original event that triggered the complete. |
AutoCompleteOpenChangeEvent
Event object for the onOpenChange callback.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoComplete component.
Types#
Instance
Instance of AutoCompleteRoot component.
| values |
|---|
| ComponentInstance<AutoCompleteRootProps, AutoCompleteRootState, AutoCompleteRootExposes> |
AutoCompleteValue#
Props#
Defines valid properties in AutoCompleteValue component.
Exposes#
Defines the methods and properties exposed by AutoCompleteValue component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteValue component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteValuePassThroughType<HTMLAttributes<HTMLInputElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteValue component.
| values |
|---|
| ComponentInstance<AutoCompleteValueProps, AutoCompleteValueState, AutoCompleteValueExposes> |
AutoCompleteTrigger#
Props#
Defines valid properties in AutoCompleteTrigger component.
Exposes#
Defines the methods and properties exposed by AutoCompleteTrigger component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteTrigger component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteTriggerPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteTrigger component.
| values |
|---|
| ComponentInstance<AutoCompleteTriggerProps, AutoCompleteTriggerState, AutoCompleteTriggerExposes> |
AutoCompletePortal#
Props#
Defines valid properties in AutoCompletePortal component.
Exposes#
Defines the methods and properties exposed by AutoCompletePortal component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompletePortal component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompletePortalPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompletePortal component.
| values |
|---|
| ComponentInstance<AutoCompletePortalProps, AutoCompletePortalState, AutoCompletePortalExposes> |
AutoCompletePositioner#
Props#
Defines valid properties in AutoCompletePositioner component.
Exposes#
Defines the methods and properties exposed by AutoCompletePositioner component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompletePositioner component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompletePositionerPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompletePositioner component.
| values |
|---|
| ComponentInstance<AutoCompletePositionerProps, AutoCompletePositionerState, AutoCompletePositionerExposes> |
AutoCompletePanel#
Props#
Defines valid properties in AutoCompletePanel component.
Exposes#
Defines the methods and properties exposed by AutoCompletePanel component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompletePanel component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompletePanelPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompletePanel component.
| values |
|---|
| ComponentInstance<AutoCompletePanelProps, AutoCompletePanelState, AutoCompletePanelExposes> |
AutoCompleteList#
Props#
Defines valid properties in AutoCompleteList component.
Exposes#
Defines the methods and properties exposed by AutoCompleteList component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteList component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteListPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteList component.
| values |
|---|
| ComponentInstance<AutoCompleteListProps, AutoCompleteListState, AutoCompleteListExposes> |
AutoCompleteOptions#
Props#
Defines valid properties in AutoCompleteOptions component.
Exposes#
Defines the methods and properties exposed by AutoCompleteOptions component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
| listbox | ListboxRootInstance | null | The Listbox component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteOptions component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteOptionsPassThroughType<HTMLAttributes<HTMLUListElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteOptions component.
| values |
|---|
| ComponentInstance<AutoCompleteOptionsProps, AutoCompleteOptionsState, AutoCompleteOptionsExposes> |
AutoCompleteOption#
Props#
Defines valid properties in AutoCompleteOption component.
Exposes#
Defines the methods and properties exposed by AutoCompleteOption component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteOption component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteOptionPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteOption component.
| values |
|---|
| ComponentInstance<AutoCompleteOptionProps, AutoCompleteOptionState, AutoCompleteOptionExposes> |
AutoCompleteClearIcon#
Props#
Defines valid properties in AutoCompleteClearIcon component.
Exposes#
Defines the methods and properties exposed by AutoCompleteClearIcon component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteClearIcon component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteClearIconPassThroughType<HTMLAttributes<HTMLSpanElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteClearIcon component.
| values |
|---|
| ComponentInstance<AutoCompleteClearIconProps, AutoCompleteClearIconState, AutoCompleteClearIconExposes> |
AutoCompleteSelection#
Props#
Defines valid properties in AutoCompleteSelection component.
Exposes#
Defines the methods and properties exposed by AutoCompleteSelection component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
| listbox | ListboxRootInstance | null | The Listbox component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteSelection component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteSelectionPassThroughType<HTMLAttributes<HTMLSpanElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteSelection component.
| values |
|---|
| ComponentInstance<AutoCompleteSelectionProps, AutoCompleteSelectionState, AutoCompleteSelectionExposes> |
AutoCompleteHeader#
Props#
Defines valid properties in AutoCompleteHeader component.
Exposes#
Defines the methods and properties exposed by AutoCompleteHeader component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteHeader component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteHeaderPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteHeader component.
| values |
|---|
| ComponentInstance<AutoCompleteHeaderProps, AutoCompleteHeaderState, AutoCompleteHeaderExposes> |
AutoCompleteFooter#
Props#
Defines valid properties in AutoCompleteFooter component.
Exposes#
Defines the methods and properties exposed by AutoCompleteFooter component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteFooter component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteFooterPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteFooter component.
| values |
|---|
| ComponentInstance<AutoCompleteFooterProps, AutoCompleteFooterState, AutoCompleteFooterExposes> |
AutoCompleteEmpty#
Props#
Defines valid properties in AutoCompleteEmpty component.
Exposes#
Defines the methods and properties exposed by AutoCompleteEmpty component.
| name | type | default | description |
|---|---|---|---|
| autocomplete | AutoCompleteRootInstance | null | The AutoComplete component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of AutoCompleteEmpty component.
| name | type | default | description |
|---|---|---|---|
| root | AutoCompleteEmptyPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of AutoCompleteEmpty component.
| values |
|---|
| ComponentInstance<AutoCompleteEmptyProps, AutoCompleteEmptyState, AutoCompleteEmptyExposes> |
useAutoComplete#
Props#
Props for the useAutoComplete hook.
State#
Defines valid state in useAutoComplete.
Exposes#
Defines the methods and properties exposed by useAutoComplete.
Events#
useAutoCompleteValueChangeEvent
Event fired when the autocomplete's value changes.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the change. |
| value | string | The selected value. |
| option | unknown | The selected option object. |
useAutoCompleteInputValueChangeEvent
Event fired when the autocomplete's input value changes.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the change. |
| query | string | The current input value. |
useAutoCompleteCompleteEvent
Event fired when the autocomplete triggers a search/complete action.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the complete. |
| query | string | The current query string. |
useAutoCompleteOpenChangeEvent
Event object for the onOpenChange callback.
Types#
Instance
Instance of useAutoComplete headless.
| values |
|---|
| HeadlessInstance<useAutoCompleteProps, useAutoCompleteState, useAutoCompleteExposes> |