@orangecheck/auth-client / UseOcAddressSuggestionReturn
Interface: UseOcAddressSuggestionReturn
Defined in: components.tsx:482
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. | components.tsx:488 |
inputProps.aria-activedescendant | string | undefined | - | components.tsx:496 |
inputProps.aria-controls | string | undefined | - | components.tsx:495 |
inputProps.aria-expanded | boolean | - | components.tsx:494 |
inputProps.aria-haspopup | "listbox" | - | components.tsx:493 |
inputProps.autoComplete | "off" | - | components.tsx:497 |
inputProps.onBlur | (e: FocusEvent<HTMLInputElement>) => void | - | components.tsx:490 |
inputProps.onFocus | (e: FocusEvent<HTMLInputElement>) => void | - | components.tsx:489 |
inputProps.onKeyDown | (e: KeyboardEvent<HTMLInputElement>) => void | - | components.tsx:491 |
inputProps.role | "combobox" | - | components.tsx:492 |
inputProps.spellCheck | false | - | components.tsx:498 |
<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. | components.tsx:505 |