View Source ZoonkWeb.Components.Icon (Zoonk v0.1.0-alpha)

Icon components.

Link to this section Summary

Link to this section Functions

Renders a Tabler Icon.

Icons are extracted from our assets/vendor/tabler directory and bundled within our compiled app.css by the plugin in your assets/tailwind.config.js.

examples

Examples

<.icon name="tabler-x" />
<.icon name="tabler-refresh" class="ml-1 w-3 h-3 animate-spin" />

attributes

Attributes

  • name (:string) (required) - the name of the icon from the tabler library.
  • class (:string) - the optional additional classes to add to the icon element. Defaults to nil.
  • gradient (:boolean) - whether to add a gradient color to the icon. Defaults to false. Global attributes are accepted.