functions
RoundedCorners| modified | Sunday 25 January 2026 |
|---|
Category: Atoms
File: atoms.go
Package: ui
1func RoundedCorners(w W) W
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.
1{
2 rounded := RoundedCorners(
3 Background(STRAWBERRY_100, Label("Rounded box")),
4 )
5 _ = rounded
6}

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