Documentation Index
Fetch the complete documentation index at: https://araf.badr.co.id/llms.txt
Use this file to discover all available pages before exploring further.
Overview
A’raf DS
Default
A’raf DS
Primary Dark
A’raf DS
Gray Dark
Slim
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.- Default
- Primary Dark
- Gray Dark
White-dominant with dark text. Best for light-themed applications.
A’raf DS
| Token | Value |
|---|---|
| Background | #FFFFFF |
| Text | #27272A |
| Active item bg | #F4F4F5 |
| Border | #E4E4E7 |
Nav Item
Each navigation item supports several optional elements.Dashboard
10⌄
Projects
5⌄
| Element | Prop | Default | Description |
|---|---|---|---|
| Status dot | dot | true | Notification/active status indicator |
| Icon | icon | true | Left-side icon |
| Number badge | badge | false | Notification or item count |
| Dropdown chevron | dropdown | false | Sub-menu indicator |
| Active state | current | false | Highlights the current page |
States
Footer
Thefooter prop renders a utility area at the bottom of the sidebar with Support, Settings, and user account information.
Iqbal Maulana
- 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
Sidebar layout style. Values:
default · slimColor theme. Values:
default · primary-dark · gray-darkRenders the footer area with Support, Settings, and user account information.
Additional Tailwind classes for custom sizing or positioning.
NavItem
Menu item text label. Not displayed in
slim style.Icon component displayed to the left of the label.
Marks this item as the currently active page.
Number displayed as a badge on the right side of the label.
Shows a chevron indicating a collapsible sub-menu.
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-labelon 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
currentmatching 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
currentsimultaneously - Don’t hide the sidebar without providing an alternative navigation path
- Don’t mix sidebar theme colors with custom colors outside the design system