
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@18f/identity-address-search
Advanced tools
This is a npm module that provides a React UI component to search for USPS (United States Postal Service) locations. It allows you to retrieve USPS location information based on a full address.
@18f/identity-address-searchThis is a npm module that provides a React UI component to search for USPS (United States Postal Service) locations. It allows you to retrieve USPS location information based on a full address.
Additionally, this module depends on existing backend services from the Login.gov project. Make sure to have the required backend services or mock services set up and running before using this module.
You can install this module using npm:
npm install @18f/identity-address-search
Requires React version 17 or greater.
Requires @18f/identity-i18n.
To use this component, provide callbacks to it for desired behaviors.
import FullAddressSearch from '@18f/identity-address-search';
// Render UI component
return(
<>
<FullAddressSearch
disabled={disabledAddressSearchCallback}
handleLocationSelect={handleLocationSelect}
locationsURL={LOCATIONS_URL}
noInPersonLocationsDisplay={noInPersonLocationsDisplay}
onFoundLocations={setLocationResultsCallback}
registerField={registerFieldCallback}
resultsHeaderComponent={resultsHeaderComponent}
/>
</>
);
By adding the usesErrorComponent prop to the FullAddressSearch component you can opt in to showing a specialized error message for skipping location selection when a locations endpoint error happens instead of the alert.
import FullAddressSearch from '@18f/identity-address-search';
// Render UI component
return(
<>
<FullAddressSearch
disabled={disabledAddressSearchCallback}
handleLocationSelect={handleLocationSelect}
locationsURL={LOCATIONS_URL}
noInPersonLocationsDisplay={noInPersonLocationsDisplay}
onFoundLocations={setLocationResultsCallback}
registerField={registerFieldCallback}
resultsHeaderComponent={resultsHeaderComponent}
usesErrorComponent
/>
</>
);
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest.
FAQs
This is a npm module that provides a React UI component to search for USPS (United States Postal Service) locations. It allows you to retrieve USPS location information based on a full address.
We found that @18f/identity-address-search demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 19 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.