formfield

package
v0.0.0-...-72edb01 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(props FormFieldProps) templ.Component

Types

type FormFieldProps

type FormFieldProps struct {
	base.FormElementProps
	Layout           LayoutType
	Label            templ.Component
	Field            templ.Component
	InputGroup       InputGroup
	FormTip          templ.Component
	FloatingLabels   bool
	IsHidden         bool
	IsInErroredState bool
}

func (FormFieldProps) BuildClassNames

func (ffp FormFieldProps) BuildClassNames() (classes string)

type InputGroup

type InputGroup struct {
	InputGroup templ.Component
	Placement  InputGroupPlacementType
}

type InputGroupPlacementType

type InputGroupPlacementType string
const PlacementAfter InputGroupPlacementType = "after"
const PlacementBefore InputGroupPlacementType = "before"

type LayoutType

type LayoutType string
const Horizontal LayoutType = "horizontal"
const Vertical LayoutType = "horizontal"

Jump to

Keyboard shortcuts

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