Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@springernature/global-dropdown
Advanced tools
Display a contextual list of links controlled by a toggle
Weekly downloads
Readme
Global branded dropdown
Include the SCSS in your application
// Pick ONE of the brands below to include
@import '@springernature/global-dropdown/scss/10-settings/default';
@import '@springernature/global-dropdown/scss/10-settings/nature';
// Include this with your other components
@import '@springernature/global-dropdown/scss/50-components/dropdown';
The core experience will show a label and a list of items underneath. JavaScript and more advanced CSS options are available by using the class .js
on the document root element.
<div class="c-dropdown">
<span class="c-dropdown__label">dropdown</span>
<button class="c-dropdown__button" aria-expanded="false" data-dropdown data-dropdown-target="#dropdown">Dropdown
<svg aria-hidden="true" width="10" height="10" aria-hidden="true" focusable="false">
<use xlink:href="i-chevron-more"></use>
</svg>
</button>
<ul class="c-dropdown__menu" id="#dropdown">
<li><a href="#" class="c-dropdown__link" data-dropdown-item>Option 1</a></li>
<li><a href="#" class="c-dropdown__link" data-dropdown-item>Option 2</a></li>
<li><a href="#" class="c-dropdown__link" data-dropdown-item>Option 3</a></li>
</ul>
</div>
import {dropdown} from 'global-dropdown/js';
dropdown();
The component uses the Expander from the brand-context
package to handle the events.
You can get a quick implementation by adding these two attributes data-dropdown
and data-dropdown-target
in your HTML as shown at the example above.
If you need more flexibility, use the expander component directly following its documentation.
FAQs
Display a contextual list of links controlled by a toggle
The npm package @springernature/global-dropdown receives a total of 2 weekly downloads. As such, @springernature/global-dropdown popularity was classified as not popular.
We found that @springernature/global-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.