GothUI

Forms

Checkbox

A native checkbox with label and validation metadata.

components.Checkbox · CheckboxProps

Use it well.

An unchecked checkbox is normally absent from submitted form data. Checked is server-rendered state, not shared library state.

Explore the full demo →

This is the source compiled for the preview. Select the text to copy it, or download the file. Change the package name and demo routes for your application.

package examples

import "github.com/Tend-Stack/GothUI/v2026/components"

templ ExampleCheckbox() {
	@components.Checkbox(components.CheckboxProps{ID: "sample-summary", Name: "summary", Label: "Include a summary", Checked: true})
}