text_field_ui

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeText     = "text"
	TypeEmail    = "email"
	TypePassword = "password"
)

Variables

This section is empty.

Functions

func EmailField

func EmailField(props Props) Node

func PasswordField

func PasswordField(props Props) Node

func TextField

func TextField(props Props, nodes ...Node) Node

Types

type Props

type Props struct {
	Id          string
	Name        string
	Label       string
	Value       string
	Placeholder string
	Messages    []string
	Autofocus   bool
	Disabled    bool
	Required    bool
	Boxed       bool
	Status      string
	Size        string
}

func CreateProps

func CreateProps(field form.Field[string]) Props

func (Props) Box

func (p Props) Box() Props

func (Props) Error added in v0.2.5

func (p Props) Error(use bool) Props

func (Props) Success added in v0.2.5

func (p Props) Success(use bool) Props

Jump to

Keyboard shortcuts

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