inputfield

package
v0.0.0-...-253b25b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

View Source
const RootClassName = "form-control"

Variables

This section is empty.

Functions

func Show

func Show(props InputProps) templ.Component

Types

type InputProps

type InputProps struct {
	base.FormElementProps
	Value                          string
	Placeholder                    string
	Type                           entities.FormFieldType
	Size                           SizeType
	FieldValidationFeedbackMessage string
	Validation                     entities.FormFieldValidation
	ExtraAttributes                map[string]any

	Min  float32
	Max  float32
	Step float32
}

func (InputProps) BuildClassNames

func (ip InputProps) BuildClassNames() (classes string)

func (InputProps) GetInputType

func (ip InputProps) GetInputType() (inputType entities.FormFieldType)

type SizeType

type SizeType string
const Large SizeType = "lg"
const Small SizeType = "sm"

Jump to

Keyboard shortcuts

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