Socket
Socket
Sign inDemoInstall

@springernature/global-dropdown

Package Overview
Dependencies
Maintainers
10
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springernature/global-dropdown

dropdown component


Version published
Weekly downloads
4
increased by300%
Maintainers
10
Weekly downloads
 
Created
Source

Global Dropdown

This is a generic dropdown component. It is not a <select>, but rather a list which is expanded when the user clicks a button.

The component is keyboard navigable.

init(dropdownSelector = '[data-dropdown]', itemSelector = '[data-dropdown-item]') 

By default the component relies on a data-dropdown and data-dropdown-item HTML attributes. These can be overwritten in the init function.

The first argument is a CSS selector to target the dropdown button. The second argument is a CSS selector to target items inside the list.

Dependencies

This component relies on classes from the global-css-utilities package. Make sure you import hiding.scss and transforms.scss.

Keywords

FAQs

Package last updated on 23 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc