Beacon.LiveAdmin.StationUI.HTML.Icon (Beacon LiveAdmin v0.4.0)

View Source

Summary

Functions

icon(assigns)

Renders a Heroicon.

Heroicons come in three styles – outline, solid, and mini. By default, the outline style is used, but solid and mini may be applied by using the -solid and -mini suffix.

You can customize the size and colors of the icons by setting width, height, and background color classes.

Examples

<.icon name="hero-x-mark-solid" />
<.icon name="hero-arrow-path" class="ml-1 w-3 h-3 animate-spin" />

Attributes

  • name (:string) (required)
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.