textfield

package
v0.0.0-...-48f2f3c Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *app.Ctx, onChange func(text string), value string, opts ...prop) *app.C

func TextField

func TextField(c *app.Ctx, rawProps app.Props) string

Text is the core functional component for rendering text.

func WithBackground

func WithBackground(bg color.Color) prop

func WithForeground

func WithForeground(fg color.Color) prop

func WithGrow

func WithGrow(grow bool) prop

func WithGrowX

func WithGrowX(grow bool) prop

func WithGrowY

func WithGrowY(grow bool) prop

func WithOnEnter

func WithOnEnter(onEnter func()) prop

func WithTitle

func WithTitle(title string) prop

Types

type Props

type Props struct {
	Title      string
	Value      string
	Foreground color.Color
	Background color.Color
	Bold       bool
	OnChange   func(text string)
	OnEnter    func()
	app.Margin
	app.Padding
	app.Layout
}

Directories

Path Synopsis
internal
runeutil
Package runeutil provides utility functions for tidying up incoming runes from Key messages.
Package runeutil provides utility functions for tidying up incoming runes from Key messages.
textinput
Package textinput provides a text input component for Bubble Tea applications.
Package textinput provides a text input component for Bubble Tea applications.

Jump to

Keyboard shortcuts

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