v0.5.1

CLI Snippet

Monospace command callout for marketing and docs.

npx

npx paubha@latest add button

Copies button.tsx into components/ui and installs its dependencies.

Installation

npx paubha@latest add cli-snippet

Usage

import { CliSnippet } from "@/components/ui/cli-snippet";

<CliSnippet
  label="Quick start"
  command="npx paubha@latest add button"
  description="Tokens, focus rings, and a11y, already baked in."
  showCopy
/>

showCopy adds a copy button (aria-label="Copy command", glow-focus ring, announces "Copied"). Off by default.

On this page