@zebra-fed/zeta-web
    Preparing search index...

    Class ZetaIcon

    The Zeta icon component has first class integration with the Zeta icon library. To see the built in icons, please visit Zeta Icons. These icons can be rendered as rounded or sharp; and the size and color can be customized using CSS variables.

    To use this component, you can either use the name prop or place an icon in the slot. Using the name prop allows for better typescript integration, whereas using the slot allows for more flexibility in terms of custom icons.

    <zeta-icon name="home"></zeta-icon>
    

    or

    <zeta-icon>home</zeta-icon>
    

    Custom icons can be created by placing an SVG in the slot:

    <zeta-icon>
    <svg>
    ...
    </svg>
    </zeta-icon>

    --icon-size The width/height of the icon

    --icon-color The color of the icon

    • Name of icon to be displayed. Full list of icons can be found at Zeta Icons. If this value and the name prop are both populated, the name prop will take precedence.

    Hierarchy

    • ContourableInterface<this> & LitElement<this>
      • ZetaIcon
    Index

    Other

    • Returns ZetaIcon

    name: ZetaIconName

    Name of icon to be displayed. Full list of icons can be found at Zeta Icons.

    If this value and the slot are both populated, this will take precedence.

    rounded: boolean
    styles: CSSResultGroup[] = ...

    rendering

    • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

      Returns TemplateResult<1>