Below are two examples the different types of stack components vstack and hstack for ordering items on a page.

Example
Example
Example
Example
Example
rc.hstack(
    rc.box(
        "Example", bg="red", border_radius="md", width="10%"
    ),
    rc.box(
        "Example",
        bg="orange",
        border_radius="md",
        width="10%",
    ),
    rc.box(
        "Example",
        bg="yellow",
        border_radius="md",
        width="10%",
    ),
    rc.box(
        "Example",
        bg="lightblue",
        border_radius="md",
        width="10%",
    ),
    rc.box(
        "Example",
        bg="lightgreen",
        border_radius="md",
        width="60%",
    ),
    width="100%",
)
Example
Example
Example
Example
Example
rc.vstack(
    rc.box(
        "Example", bg="red", border_radius="md", width="20%"
    ),
    rc.box(
        "Example",
        bg="orange",
        border_radius="md",
        width="40%",
    ),
    rc.box(
        "Example",
        bg="yellow",
        border_radius="md",
        width="60%",
    ),
    rc.box(
        "Example",
        bg="lightblue",
        border_radius="md",
        width="80%",
    ),
    rc.box(
        "Example",
        bg="lightgreen",
        border_radius="md",
        width="100%",
    ),
    width="100%",
)

rc.Stack

Container to stack elements with spacing.

PropType | ValuesDefault
align_items
str
direction
Union["row" | "column", List]
is_inline
bool
justify_content
str
should_wrap_children
bool
spacing
str
wrap
str
justify
str

Event Triggers

See the full list of default event triggers

rc.Hstack

Stack items horizontally.

PropType | ValuesDefault
align_items
str
direction
Union["row" | "column", List]
is_inline
bool
justify_content
str
should_wrap_children
bool
spacing
str
wrap
str
justify
str

rc.Vstack

Stack items vertically.

PropType | ValuesDefault
align_items
str
direction
Union["row" | "column", List]
is_inline
bool
justify_content
str
should_wrap_children
bool
spacing
str
wrap
str
justify
str