Layouts¶
marimo has higher-order layout functions that you can use to arrange outputs in rows, columns, tables, tabs, and more.
Stateless¶
Unlike elements in marimo.ui, these don't have any values associated with
them but just render their children in a certain way.
| Function | Description |
|---|---|
marimo.accordion |
Create collapsible sections |
marimo.carousel |
Create a slideshow |
marimo.callout |
Create highlighted sections |
marimo.center |
Center content |
marimo.hstack |
Stack elements horizontally |
marimo.lazy |
Lazy load content |
marimo.left |
Left-align content |
marimo.nav_menu |
Create navigation menus |
marimo.plain |
Display content without styling |
marimo.right |
Right-align content |
marimo.routes |
Create page routing |
marimo.sidebar |
Create sidebars |
marimo.tree |
Create tree structures |
marimo.vstack |
Stack elements vertically |
Stateful¶
Some elements in marimo.ui are also helpful for layout. These elements
do have values associated with them: for example, tabs tracks the
selected tab name, and table tracks the selected rows.
| Function | Description |
|---|---|
marimo.ui.tabs |
Create tabbed interfaces |
marimo.ui.table |
Create interactive tables |