textinput

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Inner textinput.Model
}

Model wraps Charm's textinput.Model to make it an actual tea.Model.

I'm not 100% sure why this is necessary, so I've asked on an issue: https://github.com/charmbracelet/bubbles/issues/371#issuecomment-2062787557.

func New

func New() Model

New returns a new text input model.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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