Panel
layout
Panel: a labeled container widget
Terminal
$termuijs render panel
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
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | required | Required title shown in the top border |
borderColor | Color | optional | Optional color for the border and title |