Folder Tabs navbar
Folder tabs navbar: links as folder tabs; the one you're reading steps forward and joins the page.
Features
- Each section is a paper folder tab standing on the page's top edge
- The tab for the section on screen is in front, in the page's own white, with no line under it
- Changing sections only moves and recolours tabs, so one steps forward as another steps back
- On phones the tabs get their own row and scroll sideways
- No JavaScript menu: plain links and CSS
Best for: Documentation, knowledge bases, portfolios and archives where people move between a few big sections.
Installation
npm install @radix-ui/react-slot class-variance-authority clsx tailwind-mergeThen copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| logo | ReactNode | - | Your logo. It inherits currentColor. |
| items | NavItem[] | - | One tab per section, in page order: label and #id href. |
| login | { label: string; href: string } | - | Optional quiet log in link. |
| cta | { label: string; href: string } | - | Optional call-to-action button. |
| className | string | - | Extra classes for the header. |
FAQ
Is the Folder Tabs navbar free to use?
Yes. Folder Tabs is free to copy into your own projects. Open the Code tab and paste the files into your app.
Does Folder Tabs work with Next.js and React?
Yes. It's a React client component made for the Next.js App Router, styled with Tailwind CSS and animated with Framer Motion (the motion package).
Can I use Folder Tabs in JavaScript instead of TypeScript?
Yes. Every file comes in TypeScript and JavaScript. Switch the language in the Code tab.
What does Folder Tabs need installed?
@radix-ui/react-slot, class-variance-authority, clsx, tailwind-merge, plus the shared helpers from the Installation page.
Is Folder Tabs accessible?
Every link and button is reachable by keyboard with a visible focus ring, and the animation stays still for visitors who ask for reduced motion.