---
title: "Workspace Switcher | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/workspace-switcher"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/dropdowns/workspace-switcher-dropdown.tsx"
install_command: "npx motion-ui-skill add workspace-switcher"
dependencies: ["clsx","lucide-react","react","tailwind-merge"]
category: "craft"
subcategory: "dropdowns"
---

# Workspace Switcher

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

## Install

```bash
npx motion-ui-skill add workspace-switcher
```

## Dependencies

- `clsx`
- `lucide-react`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/dropdowns/workspace-switcher-dropdown.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/dropdowns/workspace-switcher-dropdown.tsx)
- [icons/brands/github.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/icons/brands/github.tsx)
- [icons/brands/next-js.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/icons/brands/next-js.tsx)
- [icons/brands/vercel.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/icons/brands/vercel.tsx)
- [lib/cn.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/cn.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
