responsebox

package
v0.0.0-...-6c7f7a7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 3 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 {
	viewport.Model
	FocusedStyle lipgloss.Style
	BlurredStyle lipgloss.Style
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Focus

func (m *Model) Focus() tea.Cmd

func (*Model) SetHeight

func (m *Model) SetHeight(h int)

func (*Model) SetWidth

func (m *Model) SetWidth(w int)

func (*Model) Update

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

func (*Model) Value

func (m *Model) Value() string

TODO: implement

func (*Model) View

func (m *Model) View() string

type Option

type Option func(*Model)

func WithBlurredStyle

func WithBlurredStyle(style lipgloss.Style) Option

func WithFocusedStyle

func WithFocusedStyle(style lipgloss.Style) Option

func WithPlaceholder

func WithPlaceholder(placeholder string) Option

func WithStyle

func WithStyle(style lipgloss.Style) Option

Jump to

Keyboard shortcuts

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