Skip to main content

Overview

A’raf DS
Default
A’raf DS
Primary Dark
A’raf DS
Gray Dark
Slim
The Sidebar Navigation component is the primary vertical navigation for application layouts. It is available in 2 styles (Default and Slim) with 3 color themes, plus an optional footer section containing the user account and utility links.

Installation


Usage


Style

Two styles are available based on the sidebar layout format.

Default

Full-width sidebar with icons and text labels. Width: 312px.
A’raf DS

Slim

Compact icon-only sidebar without text labels. Width: 80px. Ideal for smaller screens or as the collapsed state of the Default sidebar.

Themes

Three color themes to match your project’s branding.
White-dominant with dark text. Best for light-themed applications.
A’raf DS

Each navigation item supports several optional elements.
Dashboard
10
Projects
5

States


The footer prop renders a utility area at the bottom of the sidebar with Support, Settings, and user account information.
Iqbal Maulana
The footer contains:
  • Support — Link to the support page
  • Settings — Link to application settings
  • Account — Avatar, name, and email of the logged-in user
  • Logout button — End the current session

API Reference

SidebarNavigation

string
default:"default"
Sidebar layout style. Values: default · slim
string
default:"default"
Color theme. Values: default · primary-dark · gray-dark
Renders the footer area with Support, Settings, and user account information.
string
Additional Tailwind classes for custom sizing or positioning.
string
Menu item text label. Not displayed in slim style.
ComponentType
Icon component displayed to the left of the label.
boolean
default:"false"
Marks this item as the currently active page.
number
Number displayed as a badge on the right side of the label.
boolean
default:"false"
Shows a chevron indicating a collapsible sub-menu.
boolean
default:"false"
Shows a green dot as a notification or status indicator.

Accessibility

  • Sidebar uses a semantic <nav> element
  • Active item carries the aria-current="page" attribute
  • Slim style must provide aria-label on every nav item for screen reader support
  • Full keyboard navigation: Tab, Enter, Space
  • Focus rings are visible on all interactive items

Do’s & Don’ts

Do

  • Use one consistent theme throughout the entire application
  • Always mark exactly one item as current matching the active page
  • Use Slim for tablet breakpoints or as a collapsed state
  • Provide tooltip labels on Slim sidebar items for accessibility

Don't

  • Don’t show more than 2 levels of navigation inside the sidebar
  • Don’t set more than one item as current simultaneously
  • Don’t hide the sidebar without providing an alternative navigation path
  • Don’t mix sidebar theme colors with custom colors outside the design system