Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
bonaparte-button
Advanced tools
The button component is a tool to manipulate attributes on HTML elements.
A button defines target-attributes which it updates on the target element when its action is triggered.
On activation, the button syncs all the target-attributes with the attibutes on the target elements. When all target-attributes match all attributes on the target elements, the active-class is set.
bonaparte-dropdown
, all the functionality on the page is achieved through bonaparte-button
– There is no custom JavaScript on the page.<bonaparte-button
action
active-class
bubbles
shortcut
target
target-[attribute]
toggle
trigger
>
</bonaparte-button>
action
HTMLEvent that triggers the button
click
active-class
Class to be added when all target-attributes match the attributes on the target.
active
bubbles
Defines if the action-event bubbels up the DOM
true
true
false
shortcut
Keyboard shortcut to trigger this button.
k
command+shift+k
command+k enter
See Mousetraptarget
CSS Selector defining the elements this button affects
target-[attribute]
[attribute]: An attribute on the target element.
Defines an attribute value this button will set on the target element when it is triggered by the action.
toggle
Allows the button to restore the targets state when clicked a second time.
false
false
: Clicking the button again will set the button state again.true
: Clicking the button again will revert the elements state.attribute, attribute
: Comma separated list of attributes that should toggletrigger
HTMLEvent that will be triggered on the target-element
FAQs
Bonaparte Component
The npm package bonaparte-button receives a total of 7 weekly downloads. As such, bonaparte-button popularity was classified as not popular.
We found that bonaparte-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.