Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@paprika/raw-button
Advanced tools
Readme
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
Unknown package
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
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.