This package has been deprecated

Author message:

Please use the new scope @axa-ch-webhub-cloud

@axa-ch/icon
TypeScript icon, indicating that this package has built-in type declarations

8.0.11 • Public • Published

AXA Icon

<axa-icon> renders an icon, given an icon name, a resource path or a string to a suitable SVG image.

Properties

Icon

Icon names

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"

Icon resource path

The icon resource path must have .svg extension.

Icon as a SVG string

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.

Size

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @axa-ch/icon

    Weekly Downloads

    308

    Version

    8.0.11

    License

    Copyright 2019 AXA Versicherungen AG

    Unpacked Size

    41.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • gianlucaguarini
    • valentin-hasler
    • marek.laco
    • domirs
    • axa-ch-user
    • matthias.zuercher
    • selinagahlinger