Code Snippet Deck

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. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Code Snippet Deck

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

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

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

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

Dependencies

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

Usage

"use client";

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

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

Browse this category