Skip to content

Panel

widgetslayout

Panel: a labeled container widget

Installation

$ bunx termuijs add panel

Copies the source into src/components/panel/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { Panel } from '@termuijs/widgets'
ts
new Panel(style: Partial<Style> = {}, opts: PanelOptions)

API Reference

Panel

PropTypeRequiredDescription
titlestringrequiredRequired title shown in the top border
borderColorColoroptionalOptional color for the border and title
#layout#panel