Ant Design Svelte

AutoComplete

Free text input with hints, search and option selection.

When to use

AutoComplete helps you enter free text: an address, a search query, or a city. Tooltips speed up input, but the user may save a string that is not in options. If you need to select a known value, use Select.

Make tooltip labels clear and the resulting value suitable for insertion into a field. Groups and additional description help compare results, but do not change the string type of the model. Categories of hints show separate label and value.

AutoComplete CSS prefixes show global ConfigProvider.prefixCls and local prefixCls without resetting state. AutoComplete uses namespace Select; prefixCls specifies the full prefix of this control and popup. The nested Input/TextArea chooses its prefix independently. Free input and carriage are preserved.

Model and events

The managed field receives a value and updates the state via onChange. In the current API, this property does not support bind:value. For the initial local value, use defaultValue; changing it later does not reinitialize the input.

Problem Setting Example
Store the entered string value, onChange Basic input
Prepare hints showSearch.onSearch Search results
Process confirmed option onSelect Address tips
Link a field to a form model value from Form and onChange Free input in Form

Finding and changing a value are different events. Selecting an option triggers onChange and onSelect, but is not a new search input. Don't store the model only in showSearch.onSearch: this is especially important with IME composition. Cleanup might report undefined, then an empty string; normalize the new value through next ?? '', as in cleaning example.

FormItem links the signature and messages, and the value is passed explicitly. Example form checks that the string is required and accepts a city outside the suggested list. If the server must accept only known values, such a check is specified by the application or Select is used.

Own control and list

children snippet receives AutoCompleteInput: attributes and register. Pass attributes to the native input/textarea and register the real element; when unmount, release the registration. Own TextArea uses public bind:nativeElement TextArea, preserving focus and keyboard handlers.

In the custom editors example, components.input renders an input or a textarea. Forward attributes and attach register to the element to keep editing, selection and focus working. showAction opens the first list on focus, and maxLength limits typing in both editors. Use components.root to replace the entire field. In this example, a textarea with rows=3 is one line tall. For three visible lines, use the TextArea example.

The local getPopupContainer gets the Select root and takes precedence over the ConfigProvider. Container example shows empty result via notFoundContent and classNames.popup.root decoration. In the current package, the empty list is hidden if there are no options or non-empty notFoundContent; This is a clarification to the FAQ of the official page.

ConfigProvider.popupOverflow selects the visible viewport or the scroll document region for overflow calculation. The shared example demonstrates inheritance and resetting to viewport. The mode does not change the DOM container, input or focus; new coordinates apply on the next opening, resize or scroll. The popup remains a fixed native popover, with its width determined by popupMatchSelectWidth.

classNames/styles and popupRender style parts of the control and extend the popup. prefix adds content before the editor. suffix changes the trailing area, and allowClear sets the clear icon and its accessible name; see the supported features in API.

AutoComplete uses design tokens from the current theme for its appearance.

popupMatchSelectWidth inherits ConfigProvider when the local prop is omitted or undefined. A value of true matches the control width, false fits the content, and a number sets the width in px; the control width remains the minimum. Shared popup width demonstrates inheritance and local precedence. Changing the width preserves input and selection.

Long suggestion lists

The grouped example demonstrates switching ConfigProvider.virtual and jumping to the last suggestion. Virtualization keeps a visible window in the DOM and measures option and group heading heights separately.

listHeight caps the inner viewport at 256 px by default; 0 removes the limit. Popup padding and borders are added outside it. listItemHeight provides an estimate before measurement, defaulting to token.controlHeight; 0 disables windowing. showScrollBar accepts true, false, or optional; optional displays the bar during scrolling or a scrollTo call and hides it after 3 seconds.

Without a local virtual prop, ConfigProvider.virtual applies. An explicitly supplied virtual=undefined enables default=true even under provider=false. popupMatchSelectWidth=false disables virtualization; numeric 0 preserves it. For a complete accessible listbox, set virtual=false; with virtualization it contains the active option and its neighbors.

bind:this provides AutoCompleteRef with focus, blur, and scrollTo. A number passed to scrollTo is a row index, including group headings. Set key on the source record for key scrolling: without it, the literal value is used, then an automatic key, independently of fieldNames.value. An index/key request runs after opening and updating the DOM with tick, as shown in the example. bind:inputElement returns the editor and bind:nativeElement the root; with components, these are the registered elements.

onActive receives the active value or null and does not replace onChange or onSelect. onPopupScroll forwards the native event from the inner viewport; currentTarget and this refer to that div.

Source suggestion fields

To use application records without converting them into value/label, set fieldNames. The value, label, options, and groupLabel names can point to custom fields; one level of groups is supported. The source suggestion example keeps the label, input text, and site section separate.

AutoCompleteProps<OptionType> preserves the record type in filters and callbacks. onSelect provides a shallow copy of the source record, including additional fields, and also runs for repeated selection. onChange receives Partial<optionType> or undefined; free input remains a string and does not require a matching option.

The showSearch.filterOption predicate receives a copy of the source option or group. A group match retains its children; otherwise individual suggestions are filtered. The example switch compares filtering by source fields with the complete list.

Rendering suggestions

Custom content uses optionRender: a Snippet receiving SelectFlattenOption<string, OptionType> and { index }. Data contains the raw record; the index is absolute and includes group headings, including with virtualization. Only the option content changes: value, filtering, title and events remain intact. Do not nest interactive elements inside the native option button.

labelRender is a pure function receiving Select metadata; it also runs during SSR. null/undefined falls back to the raw value. The standard editor retains its raw string and an invisible label DOM; a custom input suppresses this DOM while keeping function calls. To change editor text, update value through onChange. tagRender appears in types and metadata but is not called in AutoComplete; labelInValue and optionLabelProp apply only to Select.

Popup and styling

The custom popup uses the same pure popupRender as Select. A Snippet receives the original menu and can add an adjacent explanation. The function runs while closed and during SSR; visited content survives closing. A nullish result leaves an empty popup without restoring the default menu. A custom popup isolates FormItem status/feedback and Compact.

Styling individual parts demonstrates prefix, classNames/styles and ConfigProvider.select. Slots include root, prefix, input, placeholder, content, clear and popup.root/list/listItem; suffix and tag slots are absent. Objects and functions receiving props are supported; AutoComplete metadata contains its own raw props. Both a CSS object and a style string style the same root; rootClassName also applies to the popup.

Shared ConfigProvider.select provides variant, class/style, classNames/styles and showSearch. An explicit nested select replaces the parent record. A local popup leaf replaces the corresponding shared styles entirely. AutoComplete’s own allowClear defaults to false even with provider allowClear=true. showSearch=false keeps the combobox editable and the string unrestricted.

Suffix and clearing

The suffix example shows a search icon and the loading state. suffix replaces the trailing area including Form feedback; its function receives SelectSuffixInfo. searchValue contains the main value without temporary backfill text. Keep the function pure: it also runs during SSR and while the list is closed. Return a snippet from the function or pass it inside an array.

The clear button receives clearIcon and a translated label through allowClear. An object without label uses “clear” by default; the existing form with only a snippet clearIcon retains the localized name. boolean true also uses the locale. AutoComplete requires a local allowClear setting and does not inherit it from ConfigProvider.select. The object’s disabled and tabIndex fields are not available yet.

Examples

Text: — Selected: —

Basic input

Local and controlled value. showSearch.onSearch prepares tooltips, onChange updates the text, onSelect reports the selection.

Value: —

Address hints

Domains are substituted for the entered name. The review example is reused, including cleanup, backfill, and external reset.

Own TextArea

children snippet receives attributes and register. The TextArea from the package passes the native element for focus and tooltip selection; registration is cleared upon unmount.

Case insensitive search

showSearch.filterOption compares the entered text and value in a case-insensitive manner. Local filtering is explicitly enabled.

Value: —

Hint categories

Groups separate components and settings. Snippets show additional information; The value of the selected option is stored in the field.

—

Source suggestion fields

fieldNames maps group and suggestion fields; filters and onSelect receive source records.

Selected: —

Search results

The demo source generates results based on the search string. Selection is separate from search; label contains an explanation, value is the final text.

States

Error, warning and inaccessible field. The error is also reflected in aria-invalid.

Design options

outlined, filled, borderless and underlined change the appearance of the field without changing the input model.

Cleared: 0; meaning: Svelte

Your own cleaning icon

allowClear sets the clear icon and accessible name. onChange updates the string; onClear counts clear actions separately.

Suffix and clearing

suffix shows a search icon or loading state; allowClear sets the clear icon and accessible name.

Accepted: —

Keyboard and backfill

Shooters skip unavailable options. backfill shows the preliminary text, Enter accepts it, Escape cancels the preliminary selection.

You can choose a hint or write your city.

Free input into Form

Check required field, send and reset. You can select a city or enter it yourself; matching with options is not necessary.

Container and empty result

getPopupContainer puts the list into a local container, classNames.popup.root specifies its class. notFoundContent shows a message when the filter did not find any hints.

Custom editors

components.input connects a native input and textarea. showAction opens the first list on focus, and maxLength limits typing to five characters.

— 0 px

Long suggestion list

Groups, ConfigProvider.virtual, scrolling by key and onActive through AutoCompleteRef.

button

Suggestion content

optionRender changes option content; labelRender preserves the editor string.

—

Custom suggestion popup

popupRender adds an explanation alongside the original menu.

—

Styling AutoComplete parts

Prefix and semantic styles inherit ConfigProvider.select; typing remains unrestricted.

—
General: suite; local: project-auto-complete

AutoComplete uses namespace Select; prefixCls specifies the full prefix of this control and popup. The nested Input/TextArea chooses its prefix independently. Free input and carriage are preserved.

CSS prefixes AutoComplete

Common namespace ConfigProvider and local prefixCls; the state of the component is preserved when the name is changed.

Coverage Examples

Ten themes mapped to AutoComplete's live page on ant.design. Additional cards show backfill, Form and local container. Inaccessible parts of the API are clearly marked.

ThemeConditionExample and limitations
Basic UsageImplementedLocal and controlled state, search and selection.
CustomizedImplementedAddress hints from the review.
Customize Input ComponentImplementedTextArea via Svelte snippet, attributes and register.
Non-case-sensitive AutoCompleteImplementedCustom filter.
Lookup-Patterns — Certain CategoryImplementedGroups and labels with snippets.
Lookup-Patterns — Uncertain CategoryImplementedHints on request from demo source.
StatusImplementedError and warning.
VariantsImplementedFour design options.
Customize clear buttonPartiallyclearIcon and label are supported; disabled and tabIndex on the clear object are not available yet.
Custom semantic dom stylingImplementedclassNames/styles support objects and functions, including ConfigProvider.select.

API

The main parameters are checked against the public AutoCompleteProps, AutoCompleteOption and AutoCompleteInput of the @woodger/antd package.

AutoComplete Basic Parameters
PropertyDescriptionTypeDefault
showActionThe focus value opens the list when the editor receives focus.readonly ("focus" | "click")[]—
virtualEnables list windowing; ConfigProvider.virtual applies without a local prop.booleanConfigProvider / true
listHeightMaximum inner viewport height in px; 0 removes the limit.number256
listItemHeightEstimated row height before measurement; 0 disables windowing.numbertoken.controlHeight
showScrollBarOptional displays the scrollbar during scrolling and hides it after 3 seconds.boolean | 'optional'optional
onActiveReports the active suggestion or null; does not replace onChange or onSelect.(value: string | null) => void—
prefixClsFull prefix Select control and popup; without a local value, the general prefix + -select is used. Nested Input/TextArea is independent.stringConfigProvider.prefixCls + "-select"
classNamesClasses for root/prefix/input/placeholder/content/clear and popup.root/list/listItem.AutoCompleteClassNames | ((info: AutoCompleteSemanticInfo) => AutoCompleteClassNames)undefined
stylesStyles for control and popup parts, including CSS objects and shared Select settings.AutoCompleteStyles | ((info: AutoCompleteSemanticInfo) => AutoCompleteStyles)undefined
popupRenderA pure function receives the original menu; it also runs during SSR and while closed.SelectPopupRenderundefined
prefixContent before the editor. Falsy scalars, including 0, create no element.RenderEmptyContentundefined
suffixTrailing area, including replacement of Form feedback. A pure function receives state; searchValue contains the main string without temporary backfill.SelectRenderNode<SelectSuffixInfo>undefined
loadingPending state for the suffix. The application manages requests and icon content.booleanundefined
menuItemSelectedIconA pure suggestion-icon function receives value and disabled; isSelected is always false.SelectRenderNode<SelectMenuItemIconInfo<string>>From context
componentscomponents.input replaces the editor and components.root replaces the whole field. Forward attributes and register to the native element.SelectComponents<RootElement, EditorElement>undefined
nativeElementThe root div or the registered components.root element after mount.RootElement | HTMLDivElement | undefinedundefined
inputElementbind:inputElement returns the registered editor after mount.EditorElement | HTMLInputElement | HTMLTextAreaElement | undefinedundefined
rootClassNameA shared class for the AutoComplete root and popup.stringundefined
styleA CSS object or string styles the same AutoComplete root.SelectStyleundefined
optionRenderOption content. The absolute index includes groups and the virtual window.Snippet<[SelectFlattenOption<string, OptionType>, { index: number }]>undefined
labelRenderA pure display function; the editor retains the raw value string.(info: SelectLabelRenderInfo<string>) => RenderEmptyContentundefined
valueArbitrary string; no matching with options is required. Control via onChange, without bind:value.stringundefined
defaultValueInitial local value. Native reset restores it.stringundefined
optionsSource records and groups; AutoCompleteItem by default. The input model remains a string.readonly OptionType[][]
fieldNamesSource field names for the value, label, children, and group heading.SelectFieldNamesvalue / label / options; groupLabel = label
maxLengthMaximum input length. A custom editor receives it in attributes.number—
showSearchAn object configures onSearch/filterOption. Even false preserves free input.boolean | AutoCompleteSearchConfig<OptionType>ConfigProvider.select / true
onChangeInput and selection. Cleanup might pass undefined, then an empty string; for the string model use next ?? empty string.(value: string | undefined, option: Partial<OptionType> | undefined) => void—
onSelectSelection and repeated selection of a suggestion; the second argument preserves source fields.(value: string, option: OptionType) => void—
backfillPre-fills the field when moving through the list. The model changes after confirmation.booleanfalse
defaultActiveFirstOptionInitial activity of the first option; default false is different from true on ant.design. If the text is non-empty, the package will also fire the first match at the beginning of value.booleanfalse
allowClearThe object sets clearIcon and label. onClear reports clearing separately. This setting is local and is not inherited from ConfigProvider.select.boolean | SelectAllowClearfalse
openControlled visibility. Without options and notFoundContent the list is hidden. defaultOpen sets the initial visibility.booleanLocal state
onOpenChangeRequest to change visibility. With managed open, update the model from the outside.(open: boolean) => void—
notFoundContentContents of the empty result. Non-empty content allows the list to be shown without options.string | number | Snippet | nullundefined
popupMatchSelectWidthtrue uses the control width, false fits the content, and a number sets the width in px. The control width remains the minimum; undefined inherits ConfigProvider. false disables virtualization.boolean | numberConfigProvider / true
getPopupContainerThe local container takes precedence over the global setting; without a getter, the native placement of the popup is preserved.(trigger: HTMLElement) => HTMLElement | ShadowRootFrom ConfigProvider
sizelarge, medium or small; inherits from SpaceCompact and ConfigProvider.ComponentSizeFrom context
variantLocal variant → closest Form.variant → ConfigProvider.select.variant → general ConfigProvider.variant → outlined.outlined | filled | borderless | underlinedoutlined
statusCheck status. disabled and readonly preserve native input restrictions.error | warningFrom FormItem
childrenOwn control must apply attributes and register input/textarea via register with clearing when unmounted.Snippet<[AutoCompleteInput]>Native input

showSearch

AutoComplete search settings
PropertyDescriptionTypeDefault
showSearch.filterOptionFiltering is disabled by default. true searches by value, case insensitive; the function also receives groups.boolean | ((text, option) => boolean)false
showSearch.onSearchPreparing input prompts. Selecting an option is not a new search query.(text: string) => void—

Options and groups

valuelabelkeydisabledtitleclassstyle

A group uses label, key, and options by default; fieldNames specifies other field names. label can be a snippet, while value remains a string. Keyboard navigation skips groups and disabled options.

Native id, name, disabled, readonly and ARIA are passed to the input. popupRender, classNames and styles support custom popup styling. Clearing accepts a boolean or an object with clearIcon and label. The disabled field from React AllowClearConfig is not supported.

Methods

bind:this provides AutoCompleteRef with focus, blur and scrollTo methods.

bind:inputElement returns the registered editor after mount.

bind:nativeElement returns the root div or the registered components.root.

MethodTypeApplication
focus(options?: FocusOptions) => voidFocuses the editor.
blur() => voidBlurs the editor.
scrollTo(config?: SelectScrollConfig | null) => voidScrolls the list by index, key or top/left position.

Long suggestion list demonstrates scrolling by key and the onActive event.

<script lang="ts">
  import { AutoComplete, Button, type AutoCompleteRef } from '@woodger/antd';

  let control = $state<AutoCompleteRef>();
</script>

<style>
  .example {
    display: grid;
    gap: 20px;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
</style>

<div class="example">
  <AutoComplete
    bind:this={control}
    options={([{ value: 'Svelte' }])}
    aria-label={("AutoComplete Methods")}
  />
  <div class="actions">
    <Button onclick={() => control?.focus()}>{("Focus AutoComplete")}</Button>
    <Button onclick={() => control?.blur()}>{("Remove Focus AutoComplete")}</Button>
  </div>
</div>

Semantic DOM

classNames and styles accept an object or a pure function. Shared values come from ConfigProvider.select; suffix and tag slots are absent in AutoComplete. Styling AutoComplete parts.

root / prefix / input / placeholder / content / clear / popup.root / popup.list / popup.listItem

The field has the role of combobox and is connected to the list via aria-controls and aria-activedescendant. Arrows move the active option, Enter and Tab confirm it, Escape closes the list and cancels the backfill.

Registration tokens

AutoComplete uses Select theme: customize ConfigProvider.theme.components.Select. The tables of 24 component and 62 common tokens match on the Select and AutoComplete live pages. Multiple tokens belong to the general Select; AutoComplete works with one line.

Local example sets a light green palette along with the text color to remain readable in both site themes.

<script lang="ts">
  import { AutoComplete, ConfigProvider } from '@woodger/antd';
</script>

<ConfigProvider theme={{
  cssVar: {},
  token: {
    colorText: '#135200',
    colorTextPlaceholder: '#466125',
    colorBgElevated: '#fff'
  },
  components: {
    Select: {
      selectorBg: '#f6ffed',
      optionActiveBg: '#f6ffed',
      optionSelectedBg: '#d9f7be',
      optionHeight: 36,
      activeBorderColor: '#389e0d'
    }
  }
}}>
  <AutoComplete options={([{ value: 'Svelte' }, { value: 'TypeScript' }])}
    aria-label={("Custom AutoComplete theme")} placeholder={("Topic via Select tokens")} />
</ConfigProvider>
Select Component Tokens for AutoComplete
TokenPurpose
activeBorderColorFrame color when focused.
activeOutlineColorFocus outline color.
clearBgClean button background.
hoverBorderColorHover frame.
multipleItemBgBackground of the selected tag.
multipleItemBorderColorFrame of the selected tag.
multipleItemBorderColorDisabledFrame of an inaccessible tag.
multipleItemColorDisabledText of an inaccessible tag.
multipleItemHeightNormal tag height.
multipleItemHeightLGLarge tag height.
multipleItemHeightSMSmall tag height.
multipleSelectorBgDisabledBackground of inaccessible multiple Select.
optionActiveBgBackground of the active variant.
optionFontSizeOption text size.
optionHeightHeight option.
optionLineHeightVariant row height.
optionPaddingOption indents.
optionSelectedBgBackground of the selected option.
optionSelectedColorText of the selected option.
optionSelectedFontWeightText thickness of the selected option.
selectorBgField background.
showArrowPaddingInlineEndPlace for arrow.
singleItemHeightLGHeight of a large single value.
zIndexPopupList layer.

Common tokens of the current topic

The values are read through theme.useToken() and react to the settings in the header.

Common tokens of the current topic
TokenPurposeCurrent value
colorBgContainerBackground of a regular field.#ffffff
colorBgContainerDisabledBackground of the inaccessible icon.rgba(0,0,0,0.04)
colorBgElevatedDropdown background.#ffffff
colorBorderFrame color.#d9d9d9
colorBorderDisabledFrame of an inaccessible element.#d9d9d9
colorErrorPrimary color of the error.#ff4d4f
colorErrorAffixColor of additions when there is an error.#ff4d4f
colorErrorBgError background.#fff2f0
colorErrorBgHoverHover error background.#fff1f0
colorErrorBorderHoverHover error frame.#ffa39e
colorErrorOutlineError circuit.rgba(255,38,5,0.06)
colorErrorTextError text.#ff4d4f
colorFillQuaternaryWeak filling.rgba(0,0,0,0.02)
colorFillSecondarySecondary filling.rgba(0,0,0,0.06)
colorFillTertiaryTertiary fill.rgba(0,0,0,0.04)
colorIconIcon color.rgba(0,0,0,0.45)
colorIconHoverColor of icons when hovering.rgba(0,0,0,0.88)
colorPrimaryPrimary color of interactive states.#2f54eb
colorPrimaryBorderLight outline of the main color.#adc6ff
colorSplitSeparator color.rgba(5,5,5,0.06)
colorTextLabel color.rgba(0,0,0,0.88)
colorTextDescriptionDescription color.rgba(0,0,0,0.45)
colorTextDisabledColor of unavailable label.rgba(0,0,0,0.25)
colorTextPlaceholderInput prompt color.rgba(0,0,0,0.25)
colorTextQuaternarySecondary text color.rgba(0,0,0,0.25)
colorWarningPrimary warning color.#faad14
colorWarningAffixColor warning additions.#faad14
colorWarningBgWarning background.#fffbe6
colorWarningBgHoverHover alert background.#fff1b8
colorWarningHoverHover alert color.#ffd666
colorWarningOutlineWarning circuit.rgba(255,215,5,0.1)
borderRadiusNormal rounding.6
borderRadiusLGLarge rounding.8
borderRadiusSMIcon rounding.4
borderRadiusXSMinimum rounding.2
boxShadowSecondaryDrop-down shadow. 0 6px 16px 0 rgba(0,0,0,0.08), 0 3px 6px -4px rgba(0,0,0,0.12), 0 9px 28px 8px rgba(0,0,0,0.05)
controlHeightNormal field height.32
controlHeightLGLarge field height.40
controlHeightSMHeight of the small field.24
controlItemBgActiveHoverBackground of the selected item when hovering.#d6e4ff
controlOutlineWidthThickness of the element outline.2
controlPaddingHorizontalHorizontal padding of the element.12
fontFamilyFont family.-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
fontSizeBasic text size.14
fontSizeIconIcon size.12
fontSizeLGLarge text size.16
fontSizeSMSmall text size.12
lineHeightLabel line height.1.5714285714285714
lineHeightLGLarge line height.1.5
lineTypeFrame line type.solid
lineWidthFrame thickness.1
marginXSSmall external indent.8
motionDurationMidDuration of main transitions.0.2s
motionDurationSlowDuration of slow transitions.0.3s
motionEaseInOutSmooth transition curve.cubic-bezier(0.645, 0.045, 0.355, 1)
motionEaseInOutCircTransition curve.cubic-bezier(0.78, 0.14, 0.15, 0.86)
motionEaseInQuintTransition acceleration curve.cubic-bezier(0.755, 0.05, 0.855, 0.06)
motionEaseOutCircTransition deceleration curve.cubic-bezier(0.08, 0.82, 0.17, 1)
motionEaseOutQuintTransition deceleration curve.cubic-bezier(0.23, 1, 0.32, 1)
paddingSMSmall internal indent.12
paddingXSIndentation of the label from the icon.8
paddingXXSMinimum internal space.4

FAQ

How is AutoComplete different from Select?

AutoComplete saves free text and offers hints. Select selects known values. The options string is not required to match in example Form either.

Why does the model need to be updated via onChange?

The showSearch.onSearch handler prepares hints, but does not cover option selection. Store value via onChange, including input from the IME; use onSelect to react separately to the confirmed option.

Why doesn't open=true show an empty list?

The current package needs options or a non-empty notFoundContent. Without both, the list is hidden, but free input remains available. Local list displays a message when the filter result is empty.

Why doesn't Enter always select the first option?

The defaultActiveFirstOption property in the package is false by default. The input may activate an option with a suitable starting value; You can use the arrows to select another one. Check the backlight, not the supposed first element. backfill remains provisional text until confirmed.

How to connect your TextArea?

Use attributes and register from AutoCompleteInput. The real textarea is passed to register, and the registration is cleared upon unmount. Example preserves the default keyboard and focus via a public TextArea element.