
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ewc-lib/ewc-selectenh
Advanced tools
A select component built with LitElement and TailwindCSS based on ECL styles.
A customizable select component built with LitElement and TailwindCSS.
To install the component, use NPM:
npm install @ewc-lib/ewc-select-enh
Import the component in your project and use it in your HTML:
import '@ewc-lib/ewc-select-enh';
See the main.js file in the site/src folder.
<ewc-select-enh
countries='[
[{"code": "EU27_2020", "name": "European Union", "status": "active"}],
[
{"code": "AT", "name": "Austria", "status": "active"},
{"code": "BE", "name": "Belgium", "status": "active"},
...
],
[
{"code": "NO", "name": "Norway", "status": "active"},
{"code": "CH", "name": "Switzerland", "status": "active"},
...
]
]'
defaultCountries='["EU27_2020"]'
invertColors="false"
></ewc-select-enh>
countries: JSON array of country groups. Each country object should have a code, name, and status.defaultCountries: Array of default country codes.invertColors: Use this when embedding the component on a dark background.The component dispatches custom events for interactions:
country-selected: Fired when a country is selected.country-deselected: Fired when a country is deselected.select.addEventListener("country-selected", (event) => {
console.log("Country selected:", event.detail.country);
});
select.addEventListener("country-deselected", (event) => {
console.log("Country deselected:", event.detail.country);
});
Compile the TypeScript code to JavaScript and watch for changes.
npm run watch
cd site
npm run dev
Now, code changes are directly reflected in the browser.
Before publishing, test the package locally:
npm pack to create a tarball.npm install ../path-to-your-package/@ewc-lib/ewc-select-enh-x.y.z.tgz.This project is licensed under the EUPL License.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
FAQs
A select component built with LitElement and TailwindCSS based on ECL styles.
We found that @ewc-lib/ewc-selectenh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.