Forms

RadioGroup

A fieldset and legend containing same-name radio options.

components.RadioGroup · RadioGroupProps

Team size

Use it well.

The browser supplies radio keyboard behavior. Options, Value, Required and Disabled remain native form 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/TendUI/v2026/components"

templ ExampleRadioGroup() {
	@components.RadioGroup(components.RadioGroupProps{ID: "sample-size", Name: "size", Legend: "Team size", Value: "small", Options: []components.Option{{Label: "Small team", Value: "small"}, {Label: "Growing team", Value: "growing"}}})
}