input

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

func Input(p InputProps) templ.Component

Input renders a styled single-line form control.

func InputClasses

func InputClasses(p InputProps) string

Types

type InputProps

type InputProps struct {
	Variant string
	Size    string
	Class   string
	// Type — input type; defaults to text
	Type         string
	Name         string
	Value        string
	Placeholder  string
	Disabled     bool
	Required     bool
	Autocomplete string
	Min          string
	Max          string
	ID           string
	Role         string
	TabIndex     string
	AriaLabel    string
	Attrs        templ.Attributes
}

InputProps configures a native input element.

Jump to

Keyboard shortcuts

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