functions
CheckboxBtn| modified | Sunday 25 January 2026 |
|---|
Category: Components
File: form.go
Package: ui
1func CheckboxBtn(value bool, btn *Clickable) W
CheckboxBtn creates a checkbox button widget that displays checked/unchecked states.
The checkbox uses Material Design icons and responds to the current boolean value.
Example:
btn := &Clickable{}
checkbox := CheckboxBtn(true, btn) // Shows checked state
Use this for custom checkbox implementations where you manage state externally.
1{
2 btn := &Clickable{}
3 _ = CheckboxBtn(true, btn)
4}

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