components

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FooterHint

func FooterHint(width int, bindings ...key.Binding) string

FooterHint renders a row of key hint pairs: "key desc key desc …"

func Header(width int, repo, model, status string) string

Header renders a one-line banner: "intake · repo/name · model [status]"

func StatusBar

func StatusBar(width int, text string, isError bool) string

StatusBar renders a transient status line (success, error, or empty).

func Tabs

func Tabs(active app.Screen) string

Tabs renders the three top-level navigation tabs.

Types

type StreamPane

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

StreamPane is a scrollable viewport that accumulates streamed tokens.

func NewStreamPane

func NewStreamPane(width, height int) StreamPane

func (*StreamPane) Append

func (s *StreamPane) Append(chunk string)

func (*StreamPane) Content

func (s *StreamPane) Content() string

func (*StreamPane) Reset

func (s *StreamPane) Reset()

func (*StreamPane) SetContent

func (s *StreamPane) SetContent(text string)

func (*StreamPane) SetFocused

func (s *StreamPane) SetFocused(f bool)

func (*StreamPane) SetSize

func (s *StreamPane) SetSize(width, height int)

func (*StreamPane) View

func (s *StreamPane) View() string

func (*StreamPane) Viewport

func (s *StreamPane) Viewport() *viewport.Model

Viewport exposes the inner model so the parent can call vp.Update(msg).

Jump to

Keyboard shortcuts

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