icon 8.1.0
Install from the command line:
Learn more about npm packages
$ npm install @axa-ch-webhub-cloud/icon@8.1.0
Install via package.json:
"@axa-ch-webhub-cloud/icon": "8.1.0"
About this version
<axa-icon> renders an icon, given an icon name, a resource path or a string to a suitable SVG image.
| Attribute |
|---|
icon="add" |
icon="arrow-left" |
icon="arrow-right" |
icon="collapse" |
icon="document" |
icon="download" |
icon="email" |
icon="expand" |
icon="mobile" |
icon="phone" |
icon="search" |
icon="upload" |
icon="cloud-upload" |
icon="axa-logo" |
icon="axa-logo-open" |
icon="check-circle" |
icon="check" |
icon="info-outline" |
icon="warning-amber" |
icon="cloudy" |
icon="close" |
The icon resource path must have .svg extension.
You can load your own SVG and set its html string. The string must contain <svg tag. When using a custom icon, make sure to define the icon width and height (in px) in its definition and use fill="currentColor" on paths that should inherit the color from its containing component.
The default behavior set the size of the svgs to 24x24 px. To use original size on the svg use original.
| Attribute | description |
|---|---|
size="small" |
20x20 px |
size="medium" |
default. 24x24 px |
size="large" |
32x32 px |
size="original" |
use original size of svg file you use |