@equinor/fusion-wc-icon-button
v0.1.0-pr-404.1
Published
icon-button web component
Keywords
Readme
fusion-wc-icon-button 
Installation
npm install @equinor/fusion-wc-icon-buttonProperties/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;