Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@springernature/global-dropdown

Package Overview
Dependencies
Maintainers
13
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springernature/global-dropdown

Display a contextual list of links controlled by a toggle

  • 0.5.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
13
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.

FAQs

Package last updated on 26 Oct 2021

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