← Back to Components

Layout Primitives

Stack, cluster, and responsive grid helpers for composing application content.

Interactive Playground

R Code

API Reference

block_stack()

Arranges child content in a vertical flow with semantic spacing.

ArgumentTypeDefaultDescription
...shiny.tag | tagListrequiredOrdered child content.
gap'sm' | 'md' | 'lg''md'Semantic spacing between children.
align'stretch' | 'start' | 'center' | 'end''stretch'Cross-axis child alignment.
classcharacterNULLAdditional classes merged onto the wrapper.

block_cluster()

Groups child content horizontally with optional wrapping and distribution.

ArgumentTypeDefaultDescription
...shiny.tag | tagListrequiredOrdered child content.
gap'sm' | 'md' | 'lg''sm'Semantic spacing between children.
align'center' | 'start' | 'end' | 'stretch''center'Cross-axis child alignment.
justify'start' | 'center' | 'end' | 'between''start'Main-axis distribution.
wraplogicalTRUEWhether children may wrap onto additional rows.
classcharacterNULLAdditional classes merged onto the wrapper.

block_grid()

Creates a mobile-safe responsive auto-fit grid.

ArgumentTypeDefaultDescription
...shiny.tag | tagListrequiredOrdered repeated content.
min_widthCSS unit'16rem'Preferred minimum column width.
gap'sm' | 'md' | 'lg''md'Semantic spacing between rows and columns.
align'stretch' | 'start' | 'center' | 'end''stretch'Grid item alignment.
classcharacterNULLAdditional classes merged onto the wrapper.