New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eox/geosearch

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eox/geosearch

An autocompleted search input for geographic locations.

0.5.2
latest
npm
Version published
Weekly downloads
84
950%
Maintainers
0
Weekly downloads
 
Created
Source

An autocompleted search input for geographic locations.

The element comes with a configurable button mode which can be enabled with the boolean attributes button and, additionally, small, to use the button in a map toolbar.

Real-time OpenCage API access is enabled by setting the endpoint attribute. Optionally, a limit attribute may be set to restrict the number of fetched locations.

Usage

npm install @eox/geosearch
// for setups with bundlers e.g. Vite
import "@eox/geosearch"

// or, for e.g. single HTML files without bundler
import "@eox/geosearch/dist/eox-geosearch.js"

<eox-geosearch></eox-geosearch>

Configuration

Furthermore, the alignment of the input and search results can be configured to align straight or in a 90-degree angle in any direction with the input-direction and results-direction attributes and the following directions:

  • left
  • up
  • right
  • down

To style the component, the following CSS variables are supported:

  • --button-bg
  • --button-fg
  • --input-fg
  • --input-bg
  • --results-fg
  • --results-bg
  • --results-border-color

Screenshots/Videos

Screen Recording 2024-05-21 at 12 11 02

Development

For a development setup, please check the root-level readme.

Changelog

Created automatically here

FAQs

Package last updated on 26 Feb 2025

Did you know?

Socket

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.

Install

Related posts