View Source PetalComponents.Icon (petal_components v1.9.2)
Summary
Functions
A dynamic way of generating a Heroicon (v2).
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
name
(:atom
) (required)outline
(:boolean
) - Defaults totrue
.solid
(:boolean
) - Defaults tofalse
.mini
(:boolean
) - Defaults tofalse
.- Global attributes are accepted. the arbitrary HTML attributes for the svg container. Supports all globals plus:
["fill", "stroke", "stroke-width"]
.