functions

RoundedCorners
Edited: Sunday 25 January 2026

RoundedCorners

Category: Atoms
File: atoms.go
Package: ui

Signature

1func RoundedCorners(w W) W

Description

RoundedCorners applies rounded corners to any widget using the theme’s border radius.
The corners are clipped uniformly based on Theme.BorderRadius setting.

Example:

rounded := RoundedCorners(Background(RED, Label("Rounded box")))

Commonly used with Background to create modern rounded containers.

Examples

RoundedCorners

1{
2	rounded := RoundedCorners(
3		Background(STRAWBERRY_100, Label("Rounded box")),
4	)
5	_ = rounded
6}

Example Output


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

Backlinks