functions

Border
Edited: Sunday 25 January 2026

Border

Category: Atoms
File: atoms.go
Package: ui

Signature

1func Border(w W) W

Description

Border wraps a widget with a border using the theme’s border color and size.
Creates sharp corners (use RoundedCorners for rounded borders).

Example:

bordered := Border(Label("Bordered text"))

The border width and color are controlled by Theme.BorderColor and BorderSize.

Examples

Border

1{
2	bordered := Border(Label("Bordered text"))
3	_ = bordered
4}

Example Output


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

Backlinks