Navbar

The bar across the top: the brand on one side, links on the other.

Example

tsx
<Navbar>
  <NavbarBrand>
    <Text>Acme</Text>
  </NavbarBrand>
  <NavbarNav>
    <NavbarLink href="#" active>Home</NavbarLink>
    <NavbarLink href="#">Pricing</NavbarLink>
  </NavbarNav>
</Navbar>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Navbar, NavbarBrand, NavbarNav, NavbarLink, Text } from "@dash/server";

Props

NavbarLinkProps

Prop
Type
Description
hrefstring
activeboolean
onClick() => void
PreviousBreadcrumbs
On this page