live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/auth-client


@orangecheck/auth-client / UseOcAddressSuggestionReturn

Interface: UseOcAddressSuggestionReturn

Defined in: src/components.tsx:461

Properties

PropertyTypeDescriptionDefined in
<a id="property-inputprops"></a> inputProps&#123; aria-activedescendant: string | undefined; aria-controls: string | undefined; aria-expanded: boolean; aria-haspopup: "listbox"; autoComplete: "off"; onBlur: (e: FocusEvent&lt;HTMLInputElement>) => void; onFocus: (e: FocusEvent&lt;HTMLInputElement>) => void; onKeyDown: (e: KeyboardEvent&lt;HTMLInputElement>) => void; role: "combobox"; spellCheck: false; &#125;Props to spread onto your <input> element. Adds focus/blur/keydown handlers and the combobox ARIA attributes. Combine with your existing value/onChange props — this hook does NOT control them.src/components.tsx:467
inputProps.aria-activedescendantstring | undefined-src/components.tsx:475
inputProps.aria-controlsstring | undefined-src/components.tsx:474
inputProps.aria-expandedboolean-src/components.tsx:473
inputProps.aria-haspopup"listbox"-src/components.tsx:472
inputProps.autoComplete"off"-src/components.tsx:476
inputProps.onBlur(e: FocusEvent&lt;HTMLInputElement>) => void-src/components.tsx:469
inputProps.onFocus(e: FocusEvent&lt;HTMLInputElement>) => void-src/components.tsx:468
inputProps.onKeyDown(e: KeyboardEvent&lt;HTMLInputElement>) => void-src/components.tsx:470
inputProps.role"combobox"-src/components.tsx:471
inputProps.spellCheckfalse-src/components.tsx:477
<a id="property-popover"></a> popoverReactNodeThe suggestion popover. Render directly after your <input>, inside a position: relative container so the popover anchors below the input. Returns null when there's no suggestion to show.src/components.tsx:484