JSPM

  • Created
  • Published
  • Downloads 157
  • Score
    100M100P100Q14299F
  • License ISC

React component for displaying a button

Package Exports

  • @equinor/fusion-react-button

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@equinor/fusion-react-button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@equinor/fusion-react-button

Published on npm

Storybook

Fusion Web Component

Installation

npm install @equinor/fusion-react-button

Properties/Attributes

Name Type Default Description
icon string '' Icon to display, and aria-label value when label is not defined.
label string '' Label to display for the button, and aria-label.
variant ButtonVariant 'contained' Button variant to render, defaults to contained if no variant is defined.
color ButtonColor 'primary' Button color to render, defaults to primary if no color is defined.
dense boolean false Makes the button text and container slightly smaller.
disabled boolean false Disabled buttons cannot be interacted with and have no visual interaction effect.
trailingIcon boolean false When true, icon will be displayed after label.
'expandContent' boolean false When true, the space after the label and before any trailing icon, where default slotted content is rendered, is expanded to fit the available space inside the button.