A column-spanning child (pp_grid_item/1) of PhoenixPaper.Grid, in the
spirit of MUI's Grid item.
span sets the column span (1-12) at all sizes; md optionally overrides
it at the md: breakpoint and up (e.g. full-width on mobile, a third of
the grid on desktop: span={12} md={4}). Only the md: breakpoint is
supported for now — not the full sm/lg/xl breakpoint set MUI offers
— since every value has to be a literal Tailwind class (see AGENTS.md,
"Tailwind class safety"), and md: alone covers the common
"stack-on-mobile, columns-on-desktop" case. Ask if you need more
breakpoints; the pattern (col_span_lg/1 etc.) is mechanical to extend.
Summary
Functions
Renders a grid item. See the module doc.
Functions
Renders a grid item. See the module doc.
Attributes
span(:integer) - Defaults to12. Must be one of1,2,3,4,5,6,7,8,9,10,11, or12.md(:integer) - Defaults tonil.Must be one ofnil,1,2,3,4,5,6,7,8,9,10,11, or12.paperize(:boolean) - Defaults totrue.class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)