FontAwesome.Components.Icon (ex_fontawesome v0.3.0) View Source

A Surface component for rendering Font Awesome icons.

Examples

<FontAwesome.Components.Icon name="address-book" type="regular" class="h-4 w-4" />

Properties

  • name :string, required: true - The name of the icon.
  • type :string - The type of the icon

Required if default type is not configured. .

  • 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.