component

package
v0.0.0-...-2da20e2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

templ: version: v0.3.960

Index

Constants

View Source
const (
	LabelClass           = "text-gray-900"
	InputClassDefault    = "input input-xl w-full"
	TextareaClassDefault = "textarea w-full"
	InputClassError      = "input-error"
)
View Source
const (
	InputTypeText = "text"
)

Variables

This section is empty.

Functions

func FileUploadInput

func FileUploadInput(p FileUploadInputParams) templ.Component

func Form

func Form(data string) templ.Component

func Icon

func Icon(name string) templ.Component

func IconBug

func IconBug() templ.Component

func IconEnvelope

func IconEnvelope() templ.Component

func IconSignIn

func IconSignIn() templ.Component

func IconSignUp

func IconSignUp() templ.Component

func IconUser

func IconUser() templ.Component

func Input

func Input(p InputParams) templ.Component

func Radio

func Radio(p RadioParams) templ.Component

func SubmitButton

func SubmitButton(text string) templ.Component

func Textarea

func Textarea(p InputParams) templ.Component

func TopicPicker

func TopicPicker() templ.Component

Types

type FileUploadInputParams

type FileUploadInputParams struct {
	Label       string
	Purpose     string
	Name        string // "cover_file_id"
	FileIDModel string // "form.cover_file_id"
	Accept      string
	Preview     bool
	Description string
}

type InputParams

type InputParams struct {
	ID          string
	Type        string
	Label       string
	Model       string
	Required    bool
	Class       string
	ErrorModel  string
	Description string
	Autofocus   bool
	NoAutoFill  bool
	Rows        int
}

type RadioItem

type RadioItem struct {
	Label       string
	Value       string
	Description string
}

type RadioParams

type RadioParams struct {
	Label      string
	Model      string
	ErrorModel string
	Items      []RadioItem
}

Directories

Path Synopsis
templ: version: v0.3.960
templ: version: v0.3.960

Jump to

Keyboard shortcuts

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