Code Example 3 - Terminal with streamed outputPro
A CLI showcase pairing a short pitch with a terminal window that replays a command and streams its output line by line, with a replay button and a static render for reduced motion. Use it to sell a CLI, scaffolder or deploy tool.
About Code Example 3
A CLI showcase pairing a short pitch with a terminal window that replays a command and streams its output line by line, with a replay button and a static render for reduced motion. Use it to sell a CLI, scaffolder or deploy tool.
Code Example 3 is a pro code example block for React, built on shadcn/ui and Tailwind CSS. It ships as 108 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- code
- terminal
- cli
- output
- deploy
- animation
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/code-example-03Dependencies installed automatically: lucide-react.
Uses: button, reveal, use-reduced-motion, utils.
Usage
import CodeExample03 from "@/components/blocks/code-example-03"
export default function Page() {
return <CodeExample03 />
}