Sidebar
Sidebar: A collapsible application sidebar with a hover pill that follows the cursor and a shared-layout active pill that glides between items. Includes nested sections, icon-only mode with tooltips, ⌘B toggle, and a draggable mobile drawer. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Sidebar
npx motion-ui-skill add sidebarComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Source files
Sidebar
A collapsible application sidebar with a hover pill that follows the cursor and a shared-layout active pill that glides between items. Includes nested sections, icon-only mode with tooltips, ⌘B toggle, and a draggable mobile drawer.
Install
npx motion-ui-skill add sidebar
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Usage
"use client";
import { Sidebar as Sidebar } from "@/components/craft/sidebar";
export function Example() {
return (
<div className="p-6">
<Sidebar />
</div>
);
}