Learn R Programming

calcite (version 1.0.0)

page_navbar: Create a Shell with Navigation Bar Layout

Description

A convenience function for creating a simple layout with a navigation header and main content area. This is ideal for dashboard-style applications.

Usage

page_navbar(..., title = NULL, logo = NULL, nav_actions = NULL, footer = NULL)

Value

An object of class calcite_component containing a configured shell

Arguments

...

Main content area

title

Application title shown in the navigation header

logo

Optional logo component for the navigation

nav_actions

Optional actions for the navigation bar (placed in content-end)

footer

Optional footer content

Examples

Run this code
page_navbar(
  title = "My Dashboard",
  nav_actions = list(
    calcite_action(icon = "gear", text = "Settings"),
    calcite_action(icon = "sign-out", text = "Logout")
  ),
  "Dashboard content here"
)

Run the code above in your browser using DataLab