Placeholder
display
Placeholder - a labeled stand-in box for prototyping terminal layouts
Terminal
$termuijs render placeholder
Installation
$ bunx termuijs add placeholder
Copies the source into src/components/placeholder/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Placeholder } from '@termuijs/widgets'ts
new Placeholder(label: string, style: Partial<Style> = {}, opts: PlaceholderOptions = {})API Reference
Placeholder
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | required | — |
fillChar | string | optional | Fill character |
borderColor | Color | optional | — |
labelColor | Color | optional | — |