PhoenixPaper.ImageListItem (PhoenixPaper v0.1.0)

Copy Markdown View Source

A single tile (pp_image_list_item/1) inside PhoenixPaper.ImageList, in the spirit of MUI's ImageListItem + ImageListItemBar combined — an image with an optional title/subtitle overlay bar along the bottom edge.

Summary

Functions

Renders one image tile. See the module doc.

Functions

pp_image_list_item(assigns)

Renders one image tile. See the module doc.

Attributes

  • src (:string) (required)
  • alt (:string) - Defaults to "".
  • title (:string) - Defaults to nil.
  • subtitle (:string) - Defaults to nil.
  • shape (:atom) - corner radius token, see PhoenixPaper.Shape. Defaults to :lg. Must be one of :none, :xs, :sm, :md, :lg, :xl, or :full.
  • paperize (:boolean) - Defaults to true.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.