← 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| ... | shiny.tag | tagList | required | Ordered child content. |
| gap | 'sm' | 'md' | 'lg' | 'md' | Semantic spacing between children. |
| align | 'stretch' | 'start' | 'center' | 'end' | 'stretch' | Cross-axis child alignment. |
| class | character | NULL | Additional classes merged onto the wrapper. |
block_cluster()
Groups child content horizontally with optional wrapping and distribution.
| Argument | Type | Default | Description |
|---|---|---|---|
| ... | shiny.tag | tagList | required | Ordered 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. |
| wrap | logical | TRUE | Whether children may wrap onto additional rows. |
| class | character | NULL | Additional classes merged onto the wrapper. |
block_grid()
Creates a mobile-safe responsive auto-fit grid.
| Argument | Type | Default | Description |
|---|---|---|---|
| ... | shiny.tag | tagList | required | Ordered repeated content. |
| min_width | CSS 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. |
| class | character | NULL | Additional classes merged onto the wrapper. |