Skip to content

Placeholder

widgetsdisplay

Placeholder - a labeled stand-in box for prototyping terminal layouts

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

PropTypeRequiredDescription
labelstringrequired
fillCharstringoptionalFill character
borderColorColoroptional
labelColorColoroptional
#display#placeholder