Icon
Expression Extends:
class Icon extends BaseComponent(HTMLElement)
Mixin Extends:
An Icon component. Icon ships with a set of SVG icons.
Example:
Markup
<coral-icon></coral-icon>
JS constructor
new Coral.Icon();
Static Member Summary
Static Public Members | ||
public static |
Returns Icon autoAriaLabel options. |
|
public static |
size: IconSizeEnum: * Returns Icon sizes. |
Member Summary
Public Members | ||
public |
Whether aria-label is set automatically. |
|
public |
Icon name. |
|
public |
Size of the icon. |
Static Public Members
Static Public Methods
Public Members
public autoAriaLabel: String source
Whether aria-label is set automatically. See IconAutoAriaLabelEnum.
IconAutoAriaLabelEnum.OFF
by default.
public size: String source
Size of the icon. It accepts both lower and upper case sizes. See IconSizeEnum.
IconSizeEnum.SMALL
by default.reflected