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

# Code Snippet Deck

> An interactive multi-runtime developer code snippet deck with runtime switching (cURL, TypeScript, Python, Go, Rust), live dynamic parameter customizations, and line highlighting.

## Install

```bash
npx motion-ui-skill add code-snippet-deck
```

## Dependencies

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

## Usage

```tsx
"use client";

import { CodeSnippetDeck as CodeSnippetDeck } from "@/components/craft/code-snippet-deck";

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

## Source Files

- [components/craft/code-snippet-deck.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/code-snippet-deck.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
