View Source PetalComponents.Icon (petal_components v1.0.6)
Link to this section Summary
Functions
A dynamic way of generating a Heroicon (v2).
Link to this section Functions
A dynamic way of generating a Heroicon (v2).
Example:
<.icon name={:arrow_right} class="w-5 h-5 text-gray-600 dark:text-gray-400" />
attributes
Attributes
name
(:atom
) (required)outline
(:boolean
) - Defaults totrue
.solid
(:boolean
) - Defaults tofalse
.mini
(:boolean
) - Defaults tofalse
. Global attributes are accepted.