Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@axa-ch/button
Advanced tools
Buttons provide a clickable element, which can be used in forms, or anywhere else where simple, standard call-to-action functionality is needed. They can also provide styled link functionality. They may display text, icons, or both. Buttons can be styled via several properties to change their look-and-feel.
Attribute | Details |
---|---|
variant="secondary" | Button in a ghost state |
variant="red" | Button red |
variant="inverted" | Button inverted |
variant="inverted-blue-ocean" | Button inverted blue ocean |
variant="inverted-red-tosca" | Button inverted red tosca |
variant="inverted-purple-logan" | Button inverted purple logan |
variant="inverted-green-viridian" | Button inverted green viridian |
variant="inverted-blue-teal" | Button inverted inverted blue teal |
Attribute | Details |
---|---|
type="button" | Default button type (default if omitted) |
type="submit" | Submit button submit for forms |
type="reset" | Reset button for forms |
Attribute | Details |
---|---|
size="" | Default button medium size |
size="small" | button small size |
size="large" | button large size |
By default, buttons are inline blocks, but setting this attribute block
will change the button to a full-width block element.
The Boolean attribute motionoff
deactivates hover animation.
The Boolean attribute disabled
disables the button natively.
Based on the string-valued attribute icon
, interpreted as icon name, an icon will be rendered. To see the full list of possible icons, see the axa-icon README.
The string-valued attribute href
is used like in a native <a> hyperlink.
The Boolean attribute external
adds the target="_blank"
functionality.
The function-valued attribute onClick
can be used as a callback prop for React and other frameworks.
With this string attribute you can set a CSS class to the component.
FAQs
The button component for the AXA Pattern Library
We found that @axa-ch/button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 49 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.