View Source ZoonkWeb.Components.Icon (Zoonk v0.3.0-alpha)
Icon components.
Link to this section Summary
Functions
Renders a Tabler Icon.
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 tonil
.gradient
(:boolean
) - whether to add a gradient color to the icon. Defaults tofalse
.- Global attributes are accepted.