functions

CheckboxBtn
Edited: Sunday 25 January 2026

CheckboxBtn

Category: Components
File: form.go
Package: ui

Signature

1func CheckboxBtn(value bool, btn *Clickable) W

Description

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.

Examples

CheckboxBtn

1{
2	btn := &Clickable{}
3	_ = CheckboxBtn(true, btn)
4}

Example Output


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

Backlinks