Popover
uitemplate
The specific terminal coordinates (row/col) to anchor this popover to
Terminal
$termuijs render popover
Installation
$ bunx termuijs add popover
Copies the source into src/components/popover/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Popover } from '@termuijs/ui'ts
new Popover(content: Widget, style?: Partial<Style>, opts?: PopoverOptions)API Reference
Popover
| Prop | Type | Required | Description |
|---|---|---|---|
content | Widget | required | — |
placement | PopoverPlacement | optional | The placement of the popover relative to the anchor |
title | string | optional | Title shown in the panel border |
borderColor | Style['fg'] | optional | Border color |
anchor | { x: number; y: number } | optional | The specific terminal coordinates (row/col) to anchor this popover to |