Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@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.
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.