export const title = "Sidebar navigation components";
export const description = "Free and open-source React sidebar navigation components built for modern applications and websites. These sidebar navigations are built using React Aria and styled with Tailwind CSS.";
export const links = {
github: "https://github.com/untitleduico/react/tree/main/components/application/app-navigation",
};
import * as FeaturedCards from "@/components/application/app-navigation/base-components/featured-cards.story.tsx";
## Installation
You can add the sidebar navigation base components to your project using the CLI or manually.
```bash
npx untitledui@latest add sidebar-navigation-base
```
Copy the files below into your project:
Great! Now you can start using the sidebar navigation components in your project by just copy/pasting our examples below.
### Simple {{ tocOnly:true }}
### Dual-tier {{ tocOnly:true }}
### Slim {{ tocOnly:true }}
### Sections dividers {{ tocOnly:true }}
### Sections subheadings {{ tocOnly:true }}
## Featured cards
These featured cards are used to display various information in the sidebar navigation. Feel free to just swap the existing cards with any of these cards presented below.
### Progress bar {{ tocOnly:true }}
{/* */}
### Progress circle {{ tocOnly:true }}
{/* */}
### Image {{ tocOnly:true }}
### Cookie preferences {{ tocOnly:true }}
### Referral link {{ tocOnly:true }}
### Onboarding steps {{ tocOnly:true }}
### Upgrade CTA {{ tocOnly:true }}
### Support CTA {{ tocOnly:true }}
### Event CTA {{ tocOnly:true }}
### Message {{ tocOnly:true }}
### Current projects {{ tocOnly:true }}
### Free trial CTA {{ tocOnly:true }}
### QR code {{ tocOnly:true }}
## API reference
` element with a chevron trigger, and expands the group automatically when the active item is inside it. No extra state is needed on your side. Sub-items do not render icons — `NavList` passes only `href` and `badge` down to each child, so an `icon` on a sub-item is ignored.",
},
{
question: "How do I add section dividers or grouped headings to the sidebar?",
answer: "For a plain rule between groups, use `SidebarNavigationSectionDividers` and insert `{ divider: true }` entries into `items` — each one renders an `
` in the list. For labelled groups, use `SidebarNavigationSectionsSubheadings`, whose `items` prop takes a different shape: an array of `{ label, items }` objects, where `label` becomes the uppercase group heading.",
},
{
question: "Does the sidebar work on mobile?",
answer: "Yes, and it is built in. Each variant wraps its content in `MobileNavigationHeader`, which renders a compact header with a hamburger button below the `lg` breakpoint and opens the sidebar inside a dismissable React Aria modal dialog. `SidebarNavigationSlim` is the exception: on mobile it shows a full list with labels instead of the icon rail. The full sidebar is shown as a fixed column from `lg` upwards.",
},
{
question: "How do I add a featured card or hide the account card?",
answer: "`SidebarNavigationSimple` and `SidebarNavigationDualTier` accept a `featureCard` prop that takes any React node — for example one of the featured cards on this page — and renders it above the account card. `SidebarNavigationSimple` also accepts `showAccountCard`, which defaults to `true` — pass `showAccountCard={false}` to hide the account card. It also takes `footerItems` for the bottom links, and `hideBorder` to drop the right-hand border.",
},
]}
/>