Socket
Socket
Sign inDemoInstall

@axa-ch/icon

Package Overview
Dependencies
7
Maintainers
49
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @axa-ch/icon

The icon component for the AXA Pattern Library


Version published
Weekly downloads
224
increased by23.08%
Maintainers
49
Created
Weekly downloads
 

Readme

Source

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.

Attributedescription
size="small"20x20 px
size="medium"default. 24x24 px
size="large"32x32 px
size="original"use original size of svg file you use

FAQs

Last updated on 06 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc