mode

var mode: String?

Rendering mode: style, bg, mask or svg.

  • svg: render an <svg> element.

  • bg: render a <span> with the icon as background.

  • mask: render a <span> masked with the icon, following currentColor.

  • style: use bg or mask, depending on the icon content.

Defaults to automatic mode: SVG for most icons, bg or mask for animated icons.