text_field_ui

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 11 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) 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
}

func CreateProps

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

func (Props) Box

func (p Props) Box() Props

Jump to

Keyboard shortcuts

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