PhoenixPaper.Container (PhoenixPaper v0.1.0)

Copy Markdown View Source

A centered, width-constrained content wrapper (pp_container/1), in the spirit of MUI's Container.

max_width uses Tailwind's own screen-based scale (sm/md/lg/xl/ "2xl"/full) rather than replicating MUI's specific pixel breakpoints — same idea (cap the content width, center it, pad the edges), Tailwind's own vocabulary.

Summary

Functions

Renders a centered, max-width container. See the module doc.

Functions

pp_container(assigns)

Renders a centered, max-width container. See the module doc.

Attributes

  • max_width (:string) - Defaults to "lg". Must be one of "sm", "md", "lg", "xl", "2xl", or "full".
  • paperize (:boolean) - Defaults to true.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)