Lay out child widgets in a horizontal row.
Import¶
from manywidgets import RowExample¶
A slider beside the Stat it drives:
from ipywidgets import jsdlink
from manywidgets import Row, Slider, Stat
s = Slider(label="Value", min=0, max=100, value=40)
stat = Stat(label="Selected", value=40)
jsdlink((s, "value"), (stat, "value"))
Row(s, stat, gap="24px")API¶
| Trait | Type | Default | Description |
|---|---|---|---|
children | List | — | Child widgets, left to right. |
gap | Unicode | '8px' | CSS gap between children. |
align | Unicode | 'stretch' | CSS align-items (cross axis). |
widget_id | Unicode | '' | Stable unique id used for cross-widget linking (auto-assigned). |
Pass children positionally (Row(a, b)) or as a list (Row(children=[a, b])).
See Layout for how Row, Column, and Grid
compose into a full screen.