0.1.0-pr-404.1 • Published 1 year ago
@equinor/fusion-wc-icon-button v0.1.0-pr-404.1
fusion-wc-icon-button
Installation
npm install @equinor/fusion-wc-icon-button
Properties/Attributes
Name | Type | Default | Description |
---|---|---|---|
icon | IconName* | '' | Icon to display. Currently only maps to EDS icon names. |
size | IconButtonSize | medium | Sets the size of the icon button element. |
color | IconButtonColor | '' | Sets the color of the icon button element. |
rounded | boolean | '' | Sets the shape of the icon button element to rounded or square. |
disabled | boolean | '' | Sets the icon button to disabled. |
ariaLabel | string | '' | Sets the accessible label for the button. Uses icon+'_icon-button' when not defined. |
ariaHasPopup | string | '' | Indicates the availability and type of an interactive popup element, such as menu or dialog, that can be triggered by the button. |
* IconName
is exported by @equinor/eds-icons
.
type IconName = keyof typeof icons | string;
0.1.0-pr-404.1
1 year ago