Forms
Checkbox
A native checkbox with label and validation metadata.
components.Checkbox · CheckboxProps
Preview
Open standalone preview →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 →Templ example
Download example.templThis 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})
}