ReqEmbed.Component (ReqEmbed v0.2.2)

View Source

Phoenix LiveView Components to embed rich content using oEmbed.

Adding :phoenix_live_view to your dependencies is required to use this module.

Summary

Functions

Attributes

  • url (:string) (required) - URL of the resource to be embedded.
  • class (:string) - CSS class to be added into the <iframe> tag, if used it removes both width and height attributes.
  • include_caption (:boolean) - When enabled, it will include the photo title in <figcaption>. Defaults to true.

Functions

embed(assigns)

Attributes

  • url (:string) (required) - URL of the resource to be embedded.
  • class (:string) - CSS class to be added into the <iframe> tag, if used it removes both width and height attributes.
  • include_caption (:boolean) - When enabled, it will include the photo title in <figcaption>. Defaults to true.