Create a Shell with Navigation Bar Layout
page_navbar.RdA convenience function for creating a simple layout with a navigation header and main content area. This is ideal for dashboard-style applications.
Examples
page_navbar(
title = "My Dashboard",
nav_actions = list(
calcite_action(icon = "gear", text = "Settings"),
calcite_action(icon = "sign-out", text = "Logout")
),
"Dashboard content here"
)
#> <calcite-shell>
#> Dashboard content here
#> <calcite-navigation slot="header">
#> <calcite-navigation-logo slot="logo" heading="My Dashboard"></calcite-navigation-logo>
#> <calcite-action text="Settings" icon="gear" slot="content-end"></calcite-action>
#> <calcite-action text="Logout" icon="sign-out" slot="content-end"></calcite-action>
#> </calcite-navigation>
#> </calcite-shell>