EEnterUI
DocsComponentsThemesDonation
Get Started
      • Sidebar
      • SideNav
      • NavigationRail
      • TopBar
      • SearchCommand
EnterUIDocsLayout UtilitiesApp LayoutNavigation SurfacesSideNav
Layout UtilitiesUpdated 6 May 2026

SideNav

Product sidebar navigation with grouped items, active state, badges, and a collapsed mode.

SideNav is product-tuned navigation: grouped sections, badge slots, optional collapsed mode (icons only), and nested items via SideNavGroup.

#Default usage

Workspace navigation

Mark the active item with `active`. Badges accept any ReactNode.

Workspace
  • Overview
  • Projects3
  • Releases
Code
<SideNav>
  <SideNavSection title="Workspace">
    <SideNavItem active href="#overview">Overview</SideNavItem>
    <SideNavItem badge={3} href="#projects">Projects</SideNavItem>
    <SideNavItem href="#releases">Releases</SideNavItem>
  </SideNavSection>
</SideNav>

#Import

Code
import {
  SideNav,
  SideNavGroup,
  SideNavItem,
  SideNavSection,
} from "@froggdesign/enter-ui-react";

#Accessibility

The active item announces aria-current="page"; disabled items expose aria-disabled="true" and skip pointer/keyboard focus. The root uses <nav> with a configurable aria-label.

#API

  • SideNav: root <nav>. Pass collapsed to hide labels and badges.
  • SideNavSection: optional titled group of items.
  • SideNavItem: anchor with active, disabled, icon, and badge slots.
  • SideNavGroup: nested items inside a native <details> disclosure.

#Styling

Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousSidebar
NextNavigationRail

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling