Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Row

Lay out child widgets in a horizontal row.

Import

from manywidgets import Row

Example

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

TraitTypeDefaultDescription
childrenListChild widgets, left to right.
gapUnicode'8px'CSS gap between children.
alignUnicode'stretch'CSS align-items (cross axis).
widget_idUnicode''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.