import solara @solara.component def Layout(children=[]): route_current, routes_all = solara.use_route() with solara.AppLayout(sidebar_open=False): with solara.Column(): with solara.Row(): with solara.AppBarTitle(): solara.lab.ThemeToggle() for route in routes_all: with solara.Link(route): solara.Button(route.path, color="black" if route_current == route else None, style={"backgroundColor": "blue", "margin": "10px"}) with solara.Sidebar(): # Add your sidebar content here solara.Text("Sidebar Navigation") # Example content # Page content below the buttons solara.Column(children=children)