components

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Footer is the bottom status bar component

func NewFooter

func NewFooter(actions []FooterAction) Footer

NewFooter creates a new footer with the given actions

func (*Footer) SetActions

func (f *Footer) SetActions(actions []FooterAction)

SetActions sets the keyboard shortcuts to display

func (*Footer) SetMessage

func (f *Footer) SetMessage(message string)

SetMessage sets a temporary message to display

func (*Footer) SetVersion

func (f *Footer) SetVersion(version string)

SetVersion sets the version to display

func (*Footer) SetWidth

func (f *Footer) SetWidth(width int)

SetWidth sets the footer width

func (Footer) View

func (f Footer) View() string

View renders the footer

type FooterAction

type FooterAction struct {
	Key   string
	Label string
}

FooterAction represents a keyboard shortcut in the footer

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

Header is the top header component

func NewHeader

func NewHeader(title string) Header

NewHeader creates a new header with the given title

func (*Header) SetStats

func (h *Header) SetStats(stats HeaderStats)

SetStats sets the header statistics

func (*Header) SetWidth

func (h *Header) SetWidth(width int)

SetWidth sets the header width

func (Header) View

func (h Header) View() string

View renders the header

type HeaderStats

type HeaderStats struct {
	MCPInstalled int
	MCPTotal     int
	SkillsCount  int
	PluginsCount int
	AgentsOnline int
	AgentsTotal  int
}

HeaderStats contains statistics to display in the header

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

Sidebar is a side panel component

func NewSidebar

func NewSidebar() Sidebar

NewSidebar creates a new sidebar

func (*Sidebar) SetDimensions

func (s *Sidebar) SetDimensions(width, height int)

SetDimensions sets the sidebar dimensions

func (*Sidebar) SetFocused

func (s *Sidebar) SetFocused(focused bool)

SetFocused sets whether the sidebar is focused

func (*Sidebar) SetSections

func (s *Sidebar) SetSections(sections []SidebarSection)

SetSections sets the sidebar sections

func (*Sidebar) SetVersion

func (s *Sidebar) SetVersion(version string)

SetVersion sets the version to display at the bottom

func (Sidebar) Version

func (s Sidebar) Version() string

Version returns the version string

func (Sidebar) View

func (s Sidebar) View() string

View renders the sidebar content only

type SidebarSection

type SidebarSection struct {
	Title string
	Items []string
}

SidebarSection represents a section in the sidebar

type TabBar

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

TabBar is a horizontal tab bar component

func NewTabBar

func NewTabBar(tabs []TabItem) TabBar

NewTabBar creates a new tab bar with the given tabs

func (*TabBar) Active

func (t *TabBar) Active() int

Active returns the active tab index

func (*TabBar) SetActive

func (t *TabBar) SetActive(index int)

SetActive sets the active tab by index

func (*TabBar) SetWidth

func (t *TabBar) SetWidth(width int)

SetWidth sets the tab bar width

func (TabBar) View

func (t TabBar) View() string

View renders the tab bar

type TabItem

type TabItem struct {
	Name   string
	Icon   string
	Active bool
}

TabItem represents a single tab

Jump to

Keyboard shortcuts

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