View Source PetalComponents.Icon (petal_components v1.0.4)

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 to true.
  • solid (:boolean) - Defaults to false.
  • mini (:boolean) - Defaults to false. Global attributes are accepted.