panel: Panel

View source: R/screens.R

panelR Documentation

Panel

Description

A container with a border and an optional title in the top border. Its height follows its content by default.

Usage

panel(..., title = NULL, id = NULL, classes = NULL, style = NULL)

Arguments

...

Child widgets.

title

Title shown in the top border.

id

Optional identifier.

classes

Optional classes.

style

A style().

Value

A Panel widget. Change the title with ⁠$border_title⁠.

Examples

render_widget(panel(label("CPU 42%"), title = "Metrics"), 20, 3)

termr documentation built on Oct. 21, 2026, 5:13 p.m.