Sidebar

Navigation down the side in titled sections; this page's own is one.

Example

tsx
<Sidebar style={{ maxWidth: "14rem" }}>
  <SidebarSection title="Store">
    <SidebarNav>
      <SidebarNavItem href="#" active>Orders</SidebarNavItem>
      <SidebarNavItem href="#">Products</SidebarNavItem>
      <SidebarNavItem href="#">Customers</SidebarNavItem>
    </SidebarNav>
  </SidebarSection>
</Sidebar>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Sidebar, SidebarSection, SidebarNav, SidebarNavItem } from "@dash/server";

Props

SidebarSectionProps

Prop
Type
Description
titlestring

SidebarNavItemProps

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