43 Pro components and page blocks

Get Pro

Terminal Demo

Preview

Customize

Neutral
Typing speed55ms
Hold3.0s

Usage

import { TerminalDemo } from "@/components/uibrik/terminal-demo/terminal-demo";

<TerminalDemo />

Installation

npx shadcn@latest add https://uibrik.com/r/terminal-demo.json
Adds the files to components/uibrik/terminal-demo and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/terminal-demo.

Props

TerminalDemo
title
Type string
"Terminal"
Title in the window bar.
dots
Type "mono" | "mac"
"mono"
Window buttons in neutral grey, or macOS red, yellow and green.
prompt
Type string
"~"
Prompt before each command.
typingSpeed
Type number
55
Average time per typed character.
loop
Type boolean
true
Play again after a pause once finished.
hold
Type number
3
How long the finished session stays before replaying.
lines
Type TerminalLine[]
an install session
{ type: "command", text } is typed; { type: "output", text, tone?, delay? } is printed (tone: success, muted); { type: "progress", text, duration? } fills a bar.
className
Type string
–
Classes for the window.