form

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.943

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropdownList(props DropdownListProps) templ.Component

func Form

func Form(props FormProps) templ.Component

func SectionHeading

func SectionHeading(title, description string) templ.Component

func StaticText

func StaticText(label string, value string) templ.Component

func Submit

func Submit(props SubmitProps) templ.Component

func TextField

func TextField(label string, name string, value string) templ.Component

Types

type DropdownListProps struct {
	Label   string
	Name    string
	Options []DropdownOption
}
type DropdownOption struct {
	Value string
	Text  string
}

type FormProps

type FormProps struct {
	Title  string
	Method string
	Submit SubmitProps
}

type SubmitProps

type SubmitProps struct {
	Title      string
	CancelText string
	CancelPath string
}

Jump to

Keyboard shortcuts

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