Heroicons.Components.Icon (ex_heroicons v0.1.4) View Source

A Surface component for rendering Heroicons.

Examples

<Heroicons.Components.Icon type="outline" name="academic-cap" class="h-4 w-4" />

Properties

  • type :string, values: ["outline", "solid"], required: true - The type of the icon.
  • name :string, required: true - The name of the icon.
  • class :css_class - The class of the icon.
  • opts :keyword, default: [] - All options are forwarded to the underlying SVG tag as HTML attributes.

Link to this section Summary

Link to this section Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Callback implementation for Phoenix.LiveComponent.update/2.