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

# Command

> Component from Motion UI: command

## Install

```bash
npx motion-ui-skill add command
```

## Dependencies

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

## Usage

```tsx
"use client";

import Command from "@/components/craft/command";

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

## Source Files

- [components/craft/command.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/command.tsx)
- [lib/portal.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/portal.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
