Files
CrychicUI/layout/frame.go
T
ZacharyZhang-NYandClaude Opus 5.5 4efaf2680f Add layout components 0001-0025
Stack through StickyHeader, with behavior tests and gallery demos.
kit gains Arrive, Settle (paint-time layout check) and Shade.
Several actions return named ui.Element results; mygo vet forbids
elements in structs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 02:49:32 -04:00

14 lines
365 B
Go

package layout
import (
"git.zacharyzhang.com/ZacharyZhang-NY/CrychicUI/kit"
"github.com/egoist/mygo/ui"
)
// Frame clips content to the theme radius; content fades in.
func Frame(c *ui.Context, content func()) ui.Element {
return ui.Box(c).Clip().Radius(c.Theme().Radius).Children(func() {
kit.Arrive(ui.Box(c), ui.Pose{Fade: 1}, 0).Children(content)
})
}