REPL

>[1, 2, 3].map((n) => n * 2)
[ 2, 4, 6 ]
>
About this piece

REPL

Interactive prompt showing an evaluated expression and its result.

Usage

The import and the props worth knowing about, in one place.

import { Terminal11 } from "@/components/beste/piece/terminal11";

<Terminal11
  prompt=">"
  expression="[1, 2, 3].map((n) => n * 2)"
  result="[ 2, 4, 6 ]"
/>

More Terminal pieces

View all Terminal
$npx beste-ui@latest init

Terminal Prompt

Dark shell line with an emerald prompt, command text, and a blinking block cursor.

deploy
$beste deploy --prod
Building application…Uploading assets…Deployed in 4.2s

Output Window

Window-chrome shell showing a command and its output ending in a success line.

renders the label
fires onClick
respects disabled state
2 passed1 failed1.24s

Test Summary

Test run output with pass and fail markers and a totals bar.

beste-uigit:(main)

Git Prompt

Shell prompt with a git branch segment and a clean or dirty status marker.

Command Run

Dark terminal that types a command after the prompt, prints its output line by line up to a green success line behind a blinking block cursor, then clears and runs again.

pnpm dlx shadcn@latest add button

Copy Command

CLI code line with a chevron prefix and a copy button that flips to a check.