Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@paprika/raw-button
Advanced tools
Raw button component, for performing an action on the page you’re viewing.
Raw button component, for performing an action on the page you’re viewing.
yarn add @paprika/raw-button
or with npm:
npm install @paprika/raw-button
Prop | Type | required | default | Description |
---|---|---|---|---|
a11yText | string | false | null | Descriptive a11y text for assistive technologies. By default, text from children node will be used. |
canPropagate | bool | false | true | If click events are allowed to propagate up the DOM tree. |
children | node | true | - | Body content of the button. |
hasInsetFocusStyle | bool | false | false | If the visual focus ring should be displayed with an inset style. |
isActive | bool | false | null | If the button is in an "active" or "selected" state. |
isDisabled | bool | false | false | If the button is disabled. |
onClick | func | false | () => {} | Callback to be executed when the button is clicked or activated by keyboard. Typically required. |
role | string | false | "button" | Value for role attribute to override the default of "button". |
tabIndex | number | false | null | Value for tabindex attribute to override the default of 0. |
The <RawButton>
component is a fully accessible button, rendered with almost no styling as a generic <span>
element. It is intended for use any time click actions are needed for a UI element that is not visually represented as a skeuomorphic button.
For accessibility, the role="button"
, tabIndex="0"
, and aria-disabled="false"
attributes are added by default, but can be overridden. An aria-label
can be included via the a11yText
prop, a visual focus ring is applied, and keyboard listeners are included that will fire the onClick
function when the user activates the component with an enter
or space
keypress.
import RawButton from "@paprika/raw-button";
<RawButton onClick={clickHandler}>Visible click target</RawButton>;
FAQs
Raw button component, for performing an action on the page you’re viewing.
The npm package @paprika/raw-button receives a total of 4,261 weekly downloads. As such, @paprika/raw-button popularity was classified as popular.
We found that @paprika/raw-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.