@orangecheck/auth-client / UseOcAddressSuggestionReturn
Interface: UseOcAddressSuggestionReturn
Defined in: src/components.tsx:461
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-inputprops"></a> inputProps | { aria-activedescendant: string | undefined; aria-controls: string | undefined; aria-expanded: boolean; aria-haspopup: "listbox"; autoComplete: "off"; onBlur: (e: FocusEvent<HTMLInputElement>) => void; onFocus: (e: FocusEvent<HTMLInputElement>) => void; onKeyDown: (e: KeyboardEvent<HTMLInputElement>) => void; role: "combobox"; spellCheck: false; } | 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-activedescendant | string | undefined | - | src/components.tsx:475 |
inputProps.aria-controls | string | undefined | - | src/components.tsx:474 |
inputProps.aria-expanded | boolean | - | src/components.tsx:473 |
inputProps.aria-haspopup | "listbox" | - | src/components.tsx:472 |
inputProps.autoComplete | "off" | - | src/components.tsx:476 |
inputProps.onBlur | (e: FocusEvent<HTMLInputElement>) => void | - | src/components.tsx:469 |
inputProps.onFocus | (e: FocusEvent<HTMLInputElement>) => void | - | src/components.tsx:468 |
inputProps.onKeyDown | (e: KeyboardEvent<HTMLInputElement>) => void | - | src/components.tsx:470 |
inputProps.role | "combobox" | - | src/components.tsx:471 |
inputProps.spellCheck | false | - | src/components.tsx:477 |
<a id="property-popover"></a> popover | ReactNode | The 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 |