Skip to content

Popover

uitemplate

The specific terminal coordinates (row/col) to anchor this popover to

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

PropTypeRequiredDescription
contentWidgetrequired
placementPopoverPlacementoptionalThe placement of the popover relative to the anchor
titlestringoptionalTitle shown in the panel border
borderColorStyle['fg']optionalBorder color
anchor{ x: number; y: number }optionalThe specific terminal coordinates (row/col) to anchor this popover to
#template#popover