component

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffViewerComponent

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

func NewDiffViewerComponent

func NewDiffViewerComponent(width, height int) DiffViewerComponent

func (DiffViewerComponent) SetContent

func (d DiffViewerComponent) SetContent(content string) DiffViewerComponent

func (DiffViewerComponent) Update

func (DiffViewerComponent) View

func (d DiffViewerComponent) View() string

type InputComponent

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

func NewInputComponent

func NewInputComponent(label, placeholder string) InputComponent

func (InputComponent) Init

func (i InputComponent) Init() tea.Cmd

func (*InputComponent) SetValue

func (i *InputComponent) SetValue(v string)

func (InputComponent) Update

func (i InputComponent) Update(msg tea.Msg) (InputComponent, tea.Cmd)

func (InputComponent) Value

func (i InputComponent) Value() string

func (InputComponent) View

func (i InputComponent) View() string

type ListComponent

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

func NewListComponent

func NewListComponent(title string, items []list.Item, width, height int) ListComponent

func (ListComponent) SelectedItem

func (l ListComponent) SelectedItem() list.Item

func (ListComponent) Update

func (l ListComponent) Update(msg tea.Msg) (ListComponent, tea.Cmd)

func (ListComponent) View

func (l ListComponent) View() string

type ListItem

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

func NewListItem

func NewListItem(title, description string) ListItem

func (ListItem) Description

func (i ListItem) Description() string

func (ListItem) FilterValue

func (i ListItem) FilterValue() string

func (ListItem) Title

func (i ListItem) Title() string

type ProgressComponent

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

func NewProgressComponent

func NewProgressComponent(label string) ProgressComponent

func (ProgressComponent) SetPercent

func (p ProgressComponent) SetPercent(pct float64) ProgressComponent

func (ProgressComponent) Update

func (p ProgressComponent) Update(msg tea.Msg) (ProgressComponent, tea.Cmd)

func (ProgressComponent) View

func (p ProgressComponent) View() string

type SpinnerComponent

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

func NewSpinnerComponent

func NewSpinnerComponent(message string) SpinnerComponent

func (SpinnerComponent) Init

func (s SpinnerComponent) Init() tea.Cmd

func (SpinnerComponent) Update

func (s SpinnerComponent) Update(msg tea.Msg) (SpinnerComponent, tea.Cmd)

func (SpinnerComponent) View

func (s SpinnerComponent) View() string

Jump to

Keyboard shortcuts

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