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.
Accordion of one or more items. |
|
Create a carousel of items. |
|
Build a callout output. |
|
Center an item. |
|
Stack items horizontally, in a row. |
|
Lazy load a component until it is visible. |
|
Left-justify an item. |
|
Navigation menu component. |
|
Right-justify an item. |
|
Renders a list of routes that are switched based on the URL path. |
|
Displays content in a sidebar. |
|
Render a nested structure of lists, tuples, or dicts as a tree. |
|
Stack items vertically, in a column. |
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.
Display objects in a tabbed view. |
|
A table component with selectable rows. |