functions

HR
Edited: Sunday 25 January 2026

HR

Category: Atoms
File: atoms.go
Package: ui

Signature

1func HR(sz int) W

Description

HR creates a horizontal rule (divider line) with the specified thickness.
The line spans the full available width using the theme’s border color.

Example:

divider := HR(2)  // 2-pixel thick horizontal line

Commonly used between sections to create visual separation.

Examples

HR

1{
2	divider := HR(2)
3	_ = divider
4}

Example Output


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

Backlinks