PhoenixPaper.Card (PhoenixPaper v0.1.0)

Copy Markdown View Source

A Material Design card (pp_card/1): PhoenixPaper.Paper (the surface) plus padding and optional title/actions slots.

Summary

Functions

Renders a card. See the module doc.

Functions

pp_card(assigns)

Renders a card. See the module doc.

Attributes

  • paperize (:boolean) - Defaults to true.
  • elevation (:integer) - Defaults to 1.
  • padding (:atom) - Defaults to :md. Must be one of :none, :xs, :sm, :md, :lg, :xl, or :"2xl".
  • shape (:atom) - corner radius token, see PhoenixPaper.Shape. Defaults to :lg. Must be one of :none, :xs, :sm, :md, :lg, :xl, or :full.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • title
  • actions
  • inner_block (required)