GitHub's profile imagefasu.dev

Snippet

A code snippet component for displaying and copying code blocks.

bunx --bun shadcn@latest add https://registry.fasu.dev/r/snippet.json

Installation

npx shadcn@latest add https://registry.fasu.dev/r/snippet.json

Usage

import { Snippet } from "@/components/ui/snippet";
 
export default function Example() {
  return <Snippet command="bunx --bun shadcn@latest add https://registry.fasu.dev/r/snippet.json" />
}

Props

type Props = HTMLAttributes<HTMLDivElement> & {
  command: string;
}

On this page