inst/examples/mbazaDashboard/navbar.R

navbarLeft <-
  NavbarGroup(
    align = "left",
    NavbarHeading(
      img(
        src = "appsilon-logo.png",
        style = "height: 32px;",
        alt = "Appsilon"
      )
    ),
    NavbarHeading(strong("Mbaza")),
    NavbarDivider(),
    span("Mbaza AI")
  )

navbarRight <-
  NavbarGroup(
    align = "right",
    Button(
      minimal = TRUE,
      icon = "projects",
      text = "Projects",
      style = list(color = "#fff")
    ),
    NavbarDivider(),
    Button(minimal = TRUE, icon = "user"),
    Button(minimal = TRUE, icon = "notifications"),
    Popover(
      Button(minimal = TRUE, icon = "globe"),
      Menu(
        MenuItem(text = "English"),
        MenuItem(text = "Français")
      )
    )
  )

navbar <- Navbar(
  className = "bp5-dark",
  navbarLeft,
  navbarRight
)

Try the shiny.blueprint package in your browser

Any scripts or data that you put into this service are public.

shiny.blueprint documentation built on May 29, 2024, 11:29 a.m.