Componenteditors1.11 KB gzipZero dependencies
Terminal
Fake terminal card with sequential line reveal and blinking cursor
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add terminalOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Terminal } from "@/components/ui/terminal"; <Terminal lines={lines} loop={true} />Source code
terminal.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxterminal.tsx126 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface TerminalLine { text: string; tone?: "info" | "warn" | "error";} export interface TerminalProps extends React.HTMLAttributes<HTMLDivElement> { lines: TerminalLine[]; prompt?: string; loop?: boolean; onCommand?: (command: string) => void; className?: string;} Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Terminal } from "@/components/ui/terminal"; <Terminal />| Prop | Type | Description |
|---|---|---|
| lines | TerminalLine[] | Configures lines. (Default: []) |
| prompt | string | Configures prompt. (Default: "> ") |
| loop | boolean | Toggles loop. (Default: false) |
| onCommand | (command: string) => void | Callback invoked on command. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |