![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-loqate
Advanced tools
This is a React implementation of the loqate APIs. It features an input, typing in which will result in a list of address options. Clicking an option will trigger your callback with that option
This is a React implementation of the loqate APIs. It features an input, typing in which will result in a list of address options. Clicking an option will trigger your callback with that option
You must polyfill fetch.
name | type | required | example | description |
---|---|---|---|---|
apiKey | string | yes | "AA11-AA11-AA11-AA11" | Loqate API key |
locale | string | yes | "en_GB" | Language to be used |
onSelect | (address) => void | yes | address => console.log(address) | Callback with for Loqate response |
countries | string[] | no | ["GB", "NL"] | Countries to search in |
limit | number | no | 10 | Number of options to show |
inputClassname | string | no | "address-input" | Classname for the input |
listClassname | string | no | "address-options" | Classname for the list |
listItemClassname | string | no | "address-option" | Classname for the list items |
components | see Customization | no | see Customization | Components to overwrite the default ones |
You can either style the existing input, list and listItem with their respective classes or replace them completely by passing in your own components in the components prop.
List component must be able to accept a ref! All components must pass down their props!
import React from 'react';
const AddressSearchInput = (props): JSX.Element => {
return (
<input
placeholder={'start typing your address or postcode'}
autocomplete="chrome-off"
{...props}
/>
);
};
<AddressSearch
locale="en_GB"
apiKey="AA11-AA11-AA11-AA11"
countries={['GB']}
components={{ Input: AddressSearchInput }}
listItemClassname="list-item"
onSelect={address => console.log(address)}
/>;
FAQs
This is a React implementation of the loqate APIs. It features an input, typing in which will result in a list of address options. Clicking an option will trigger your callback with that option.
We found that react-loqate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.