functions

Panel
Edited: Sunday 25 January 2026

Panel

Category: Utilities
File: components.go
Package: ui

Signature

1func Panel(title string, w W) W

Description

Panel creates a titled container with a bold header and content below.
Commonly used for organizing UI sections with clear visual hierarchy.

Example:

panel := Panel("Settings", Rows(
    Rigid(Label("Option 1")),
    Rigid(Label("Option 2")),
))

The title is automatically styled in bold with appropriate spacing.

Examples

Panel

1{
2	content := Label("Panel content")
3	_ = Panel("Settings", content)
4}

Example Output


This documentation is auto-generated. To update, run make docs

Backlinks