Library
/
Overlay
/
Drawer
rx.drawer.root(
rx.drawer.trigger(rx.button("Open Drawer")),
rx.drawer.overlay(z_index="5"),
rx.drawer.portal(
rx.drawer.content(
rx.flex(
rx.drawer.close(rx.box(rx.button("Close"))),
align_items="start",
direction="column",
),
top="auto",
right="auto",
height="100%",
width="20em",
padding="2em",
background_color="#FFF"
# background_color=rx.color("green", 3)
)
),
direction="left",
)
A layer that covers the inert portion of the view when the dialog is open.
Did you find this useful?