selection

package
v0.0.0-...-b42d0f1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

README

Selection Elements

Copy this package as source when an application needs selection controls.

Copy:

  • swatches.templ

Do not copy generated files:

  • *_templ.go

After copying, run templ generate ./... and .ui8px checks in the destination app.

The package depends only on UI8Kit.

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwatchGroup

func SwatchGroup(props SwatchGroupProps) templ.Component

Types

type Swatch

type Swatch struct {
	Label    string
	Value    string
	Class    string
	Selected bool
}

type SwatchGroupProps

type SwatchGroupProps struct {
	Label         string
	Items         []Swatch
	SelectedValue string
}

Jump to

Keyboard shortcuts

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