selectinput

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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 Select

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

Select renders a styled <select> element.

Types

type Props

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

type Size

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

type Variant

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

Jump to

Keyboard shortcuts

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