Workspace Switcher

Workspace Switcher: Rectangular org bar that expands inline — workspace list opens inside the same bordered box, not a floating panel. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Workspace Switcher

npx motion-ui-skill add workspace-switcher

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

Dependencies

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

Source files

Workspace Switcher

Rectangular org bar that expands inline — workspace list opens inside the same bordered box, not a floating panel.

Install

npx motion-ui-skill add workspace-switcher

Dependencies

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

Usage

"use client";

import { WorkspaceSwitcherDropdown } from "@/components/dropdowns/workspace-switcher-dropdown";

export function WorkspaceSwitcherDropdownDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <WorkspaceSwitcherDropdown />
    </div>
  );
}

API Reference

WorkspaceSwitcherDropdown

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category