oc · docs
docs / documentation

@orangecheck/auth-client


@orangecheck/auth-client / UseOcAddressSuggestionReturn

Interface: UseOcAddressSuggestionReturn

Defined in: components.tsx:482

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.components.tsx:488
inputProps.aria-activedescendantstring | undefined-components.tsx:496
inputProps.aria-controlsstring | undefined-components.tsx:495
inputProps.aria-expandedboolean-components.tsx:494
inputProps.aria-haspopup"listbox"-components.tsx:493
inputProps.autoComplete"off"-components.tsx:497
inputProps.onBlur(e: FocusEvent&lt;HTMLInputElement>) => void-components.tsx:490
inputProps.onFocus(e: FocusEvent&lt;HTMLInputElement>) => void-components.tsx:489
inputProps.onKeyDown(e: KeyboardEvent&lt;HTMLInputElement>) => void-components.tsx:491
inputProps.role"combobox"-components.tsx:492
inputProps.spellCheckfalse-components.tsx:498
<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.components.tsx:505