fields

package
v0.0.0-...-f10f9a5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BubbleField

type BubbleField struct {
	// contains filtered or unexported fields
}

func (*BubbleField) Init

func (f *BubbleField) Init() tea.Cmd

func (*BubbleField) SetError

func (f *BubbleField) SetError(err error)

func (*BubbleField) Update

func (f *BubbleField) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*BubbleField) Value

func (f *BubbleField) Value() string

func (*BubbleField) View

func (f *BubbleField) View() string

type Label

type Label struct {
	// contains filtered or unexported fields
}

func (Label) Init

func (l Label) Init() tea.Cmd

func (Label) Update

func (l Label) Update(tea.Msg) (tea.Model, tea.Cmd)

func (Label) View

func (l Label) View() string

type TextField

type TextField struct {
	// contains filtered or unexported fields
}

func NewTextField

func NewTextField(label string, opts ...TextFieldOption) TextField

func (*TextField) Blur

func (f *TextField) Blur()

func (*TextField) ClearError

func (f *TextField) ClearError()

func (*TextField) Focus

func (f *TextField) Focus()

func (*TextField) Init

func (f *TextField) Init() tea.Cmd

func (*TextField) SetError

func (f *TextField) SetError(err error)

func (*TextField) SetValue

func (f *TextField) SetValue(val string)

func (*TextField) Update

func (f *TextField) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*TextField) Value

func (f *TextField) Value() string

func (*TextField) View

func (f *TextField) View() string

type TextFieldOption

type TextFieldOption func(*TextField)

func WithErrorStyle

func WithErrorStyle(style lipgloss.Style) TextFieldOption

Option to set the error style

func WithFocus

func WithFocus(focus bool) TextFieldOption

Option to set focus

func WithInitialValue

func WithInitialValue(val string) TextFieldOption

Option to set the initial value

func WithPlaceholder

func WithPlaceholder(placeholder string) TextFieldOption

Option to set the placeholder

func WithStyle

func WithStyle(style lipgloss.Style) TextFieldOption

Option to set the style of the text field

Jump to

Keyboard shortcuts

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