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 ]"
  bordered={false}
/>

More Terminal pieces

View all Terminal
$npx beste-ui@latest init
$beste deploy --prod
Building application…Uploading assets…Deployed in 4.2s
renders the label
fires onClick
respects disabled state
2 passed1 failed
➜beste-uigit:(main)✗

pnpm dlx shadcn@latest add button