radio

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Radio

func Radio(props ...Props) templ.Component

Radio renders a styled <input type="radio">.

Types

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    Variant
	Size       Size
	Name       string
	Checked    bool
	Disabled   bool
}

type Size

type Size string
const (
	SizeDefault Size = ""
	SizeXs      Size = "radio-xs"
	SizeSm      Size = "radio-sm"
	SizeMd      Size = "radio-md"
	SizeLg      Size = "radio-lg"
	SizeXl      Size = "radio-xl"
)

type Variant

type Variant string
const (
	VariantDefault   Variant = ""
	VariantNeutral   Variant = "radio-neutral"
	VariantPrimary   Variant = "radio-primary"
	VariantSecondary Variant = "radio-secondary"
	VariantAccent    Variant = "radio-accent"
	VariantInfo      Variant = "radio-info"
	VariantSuccess   Variant = "radio-success"
	VariantWarning   Variant = "radio-warning"
	VariantError     Variant = "radio-error"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL