View Source PetalComponents.Icon (petal_components v0.19.5)
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
rest
(:global
) - the arbitrary HTML attributes for the svg container. Supports all globals plus:["fill", "stroke", "stroke-width"]
.name
(:atom
) (required)outline
(:boolean
) - Defaults totrue
.solid
(:boolean
) - Defaults tofalse
.mini
(:boolean
) - Defaults tofalse
.