PhoenixPaper.Paper (PhoenixPaper v0.1.0)

Copy Markdown View Source

The base Material surface (pp_paper/1) — a background, an elevation shadow, and rounded corners. No padding, no title/actions slots; it's the primitive PhoenixPaper.Card is built on top of, for anything that just needs a raised surface to sit on.

<.pp_paper elevation={2} class="p-4">
  Anything can go here.
</.pp_paper>

Summary

Functions

Renders a surface. See the module doc.

Functions

pp_paper(assigns)

Renders a surface. See the module doc.

Attributes

  • elevation (:integer) - Defaults to 1.
  • 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.
  • component (:string) - overrides the data-pp-component marker — used by components (e.g. Card) built on top of Paper. Defaults to "paper".
  • Global attributes are accepted.

Slots

  • inner_block (required)