Function createColoredIcon

  • Wraps an existing icon with a specific color and outputs another icon that can be used anywhere the original icon can be used.

    Parameters

    • icon: ViraIconSvg
    • colors: Partial<Record<"vira-icon-stroke-color" | "vira-icon-fill-color" | "vira-icon-stroke-width", string>>

    Returns ViraIconSvg