
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@mountainpass/addressr-react
Advanced tools
React address autocomplete component for Australian address search via Addressr
React address autocomplete component for Australian address search, powered by Addressr.
Part of the addressr-ui monorepo.
npm install @mountainpass/addressr-react
Peer dependencies: react >= 18, react-dom >= 18.
import { AddressAutocomplete } from '@mountainpass/addressr-react';
import '@mountainpass/addressr-react/style.css';
function MyForm() {
return (
<AddressAutocomplete
apiUrl="https://api.addressr.io/"
onSelect={(address) => {
console.log(address.sla); // "1 GEORGE ST, SYDNEY NSW 2000"
console.log(address.structured); // { street, locality, state, postcode, ... }
console.log(address.geocoding); // { latitude, longitude, ... }
}}
/>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
apiKey | string | -- | RapidAPI key. Omit for direct API access. |
onSelect | (address: AddressDetail) => void | required | Called when an address is selected |
label | string | "Search Australian addresses" | Accessible label text |
placeholder | string | "Start typing an address..." | Input placeholder |
className | string | -- | Additional CSS class for the wrapper |
debounceMs | number | 300 | Debounce delay in milliseconds |
apiUrl | string | "https://addressr.p.rapidapi.com/" | API root URL |
apiHost | string | "addressr.p.rapidapi.com" | RapidAPI host header |
Build your own UI while keeping the search logic, debounce, pagination, and abort handling:
import { useAddressSearch } from '@mountainpass/addressr-react';
function MyCustomAutocomplete() {
const {
query, setQuery,
results, isLoading,
hasMore, loadMore, isLoadingMore,
selectedAddress, selectAddress,
error, clear,
} = useAddressSearch({ apiUrl: 'https://api.addressr.io/' });
return (
<div>
<input value={query} onChange={(e) => setQuery(e.target.value)} />
<ul>
{results.map((r) => (
<li key={r.pid} onClick={() => selectAddress(r.pid)}>{r.sla}</li>
))}
{hasMore && <li onClick={loadMore}>Load more...</li>}
</ul>
</div>
);
}
| Property | Type | Description |
|---|---|---|
query | string | Current input value |
setQuery | (q: string) => void | Update query (triggers debounced search) |
results | AddressSearchResult[] | Search results (accumulated across pages) |
isLoading | boolean | Initial search in progress |
isLoadingMore | boolean | Pagination fetch in progress |
hasMore | boolean | More pages available |
loadMore | () => Promise<void> | Load next page of results |
error | Error | null | Latest error |
selectedAddress | AddressDetail | null | Selected address detail |
selectAddress | (pid: string) => Promise<void> | Fetch full address detail |
clear | () => void | Reset all state |
Built with downshift for WAI-ARIA combobox pattern compliance:
This package re-exports everything from @mountainpass/addressr-core for convenience -- createAddressrClient, parseHighlight, and all types.
Apache-2.0
FAQs
React address autocomplete component for Australian address search via Addressr
The npm package @mountainpass/addressr-react receives a total of 21 weekly downloads. As such, @mountainpass/addressr-react popularity was classified as not popular.
We found that @mountainpass/addressr-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.