ui

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTheme = &Theme{
	PrimaryBorder: lipgloss.AdaptiveColor{Light: "013", Dark: "008"},
}
View Source
var (
	MessageToolCall = lipgloss.NewStyle().
		Margin(0, 1).
		Border(lipgloss.NormalBorder()).
		BorderForeground(DefaultTheme.PrimaryBorder).
		Padding(0, 1)
)

Functions

func ViewportKeyMap

func ViewportKeyMap() viewport.KeyMap

Types

type Model

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

func NewModel

func NewModel(ai *ai.Ai) 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

type Theme

type Theme struct {
	PrimaryBorder lipgloss.AdaptiveColor
}

Directories

Path Synopsis
components

Jump to

Keyboard shortcuts

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