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 sidebar

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

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

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { Sidebar as Sidebar } from "@/components/craft/sidebar";

export function Example() {
  return (
    <div className="p-6">
      <Sidebar />
    </div>
  );
}

Browse this category