Skip to content

Commit e593877

Browse files
committed
docs update code hbox
1 parent 29ec30d commit e593877

File tree

1 file changed

+4
-6
lines changed
  • solara/website/pages/documentation/components/layout

1 file changed

+4
-6
lines changed

solara/website/pages/documentation/components/layout/hbox.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
@solara.component
1212
def Page():
13-
with solara.VBox() as main:
14-
colors = "green red orange brown yellow pink".split()
15-
with solara.HBox():
16-
for color in colors:
17-
ColorCard(color, color)
18-
return main
13+
colors = "green red orange brown yellow pink".split()
14+
with solara.Row():
15+
for color in colors:
16+
ColorCard(color, color)

0 commit comments

Comments
 (0)