functions
Panel| modified | Sunday 25 January 2026 |
|---|
Category: Utilities
File: components.go
Package: ui
1func Panel(title string, w W) W
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.
1{
2 content := Label("Panel content")
3 _ = Panel("Settings", content)
4}

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