Versions in this module Expand all Collapse all v1 v1.5.0 Oct 27, 2026 Changes in this version + const IconAgentVCS + const IconArrowDown + const IconArrowUp + const IconBookOpen + const IconBot + const IconChat + const IconCheck + const IconChevronDown + const IconChevronL + const IconChevronR + const IconChevronUp + const IconClock + const IconClose + const IconCommand + const IconCopy + const IconDesign + const IconEdit + const IconEditor + const IconError + const IconEvaluator + const IconExtensions + const IconExternal + const IconFile + const IconFileText + const IconFolder + const IconGlobe + const IconHome + const IconInfo + const IconInstances + const IconKey + const IconLogOut + const IconLogs + const IconMaximize + const IconMinus + const IconMonitor + const IconMoon + const IconMore + const IconOrchestrate + const IconPanelLeft + const IconPanelRight + const IconPlus + const IconProjects + const IconRefresh + const IconRestore + const IconSearch + const IconSend + const IconSettings + const IconSetup + const IconSimpleChat + const IconSpinner + const IconStop + const IconSuccess + const IconSun + const IconTerminal + const IconThinking + const IconTodo + const IconTool + const IconTrash + const IconUpdate + const IconUser + const IconWarning + const ToastError + const ToastInfo + const ToastSuccess + const ToastWarning + var DefaultSettings = Settings + var ErrNoWebView = errors.New("embedded web views are not available in this window") + func Badge(c *ui.Context, text string, tone Tone) ui.Element + func Button(c *ui.Context, o ButtonOpts) ui.Element + func Card(c *ui.Context, fn func()) ui.Element + func CodeBlock(c *ui.Context, lang, code string, opts *markdown.Options) ui.Element + func CopyText(s string) bool + func Dialog(c *ui.Context, open *bool, o DialogOpts) ui.Element + func EmptyState(c *ui.Context, icon, title, description string) ui.Element + func HasIcon(name string) bool + func Icon(c *ui.Context, name string) ui.Element + func IconButton(c *ui.Context, icon, label string) ui.Element + func IconNames() []string + func Input(c *ui.Context, value *string, placeholder string) ui.Element + func NavItem(c *ui.Context, icon, label string, active, collapsed bool) ui.Element + func OpenWebWindow(title, url string, apply func(c *ui.Context)) *mygo.Window + func PrimaryButton(c *ui.Context, label string) ui.Element + func SVG(name string) *ui.SVG + func SecondaryButton(c *ui.Context, label string) ui.Element + func SectionLabel(c *ui.Context, text string) ui.Element + func Select(c *ui.Context, selected *string, options []string) ui.Element + func SettingsRow(c *ui.Context, label, description string, control func()) ui.Element + func SettingsSection(c *ui.Context, title, description string, fn func()) ui.Element + func Spinner(c *ui.Context) ui.Element + func Switch(c *ui.Context, on *bool, label string) ui.Element + func ToastViewport(c *ui.Context) + func ToneColors(tone Tone) (fg, bg ui.Color) + func Tooltip(el ui.Element, text string) ui.Element + type Accent string + func Accents() []Accent + type ButtonOpts struct + Active bool + Disabled bool + Icon string + Label string + Size Size + Tooltip string + Variant Variant + type DialogOpts struct + Body func() + Description string + Footer func() + Title string + Width float32 + type Family string + const FamilyForest + const FamilyPando + const FamilyPaper + const FamilySlate + func Families() []Family + type Mode string + const ModeDark + const ModeLight + const ModeSystem + type Settings struct + Accent Accent + Family Family + Mode Mode + type Size int + const SizeMD + const SizeSM + type Toaster struct + Invalidate func() + func (q *Toaster) Error(title, desc string) + func (q *Toaster) Flush(c *ui.Context) + func (q *Toaster) Info(title, desc string) + func (q *Toaster) Push(t ui.Toast) + func (q *Toaster) Success(title, desc string) + type Tokens struct + Accent ui.Color + AccentFg ui.Color + AccentHover ui.Color + AccentSoft ui.Color + Bg ui.Color + BgCard ui.Color + BgHover ui.Color + BgInput ui.Color + BgOverlay ui.Color + BgRaised ui.Color + BgShell ui.Color + Border ui.Color + BorderStrong ui.Color + ControlH float32 + ControlHSm float32 + Danger ui.Color + DangerSoft ui.Color + Dark bool + Family Family + Fg ui.Color + FgFaint ui.Color + FgMuted ui.Color + FocusRing ui.Color + Info ui.Color + InfoSoft ui.Color + MonoFont string + RadiusLG float32 + RadiusMD float32 + RadiusSM float32 + RadiusXL float32 + RadiusXS float32 + Scrim ui.Color + Success ui.Color + SuccessSoft ui.Color + Text2XL float32 + TextBase float32 + TextLG float32 + TextMD float32 + TextSM float32 + TextXL float32 + TextXS float32 + Warning ui.Color + WarningSoft ui.Color + func Apply(c *ui.Context, s Settings) *Tokens + func Current() *Tokens + func Resolve(f Family, dark bool, accent Accent) *Tokens + func (t *Tokens) Markdown() *markdown.Theme + func (t *Tokens) UI() *ui.Theme + type Tone int + const ToneAccent + const ToneDanger + const ToneInfo + const ToneNeutral + const ToneSuccess + const ToneWarning + type Variant int + const Danger + const Ghost + const Outline + const Primary + const Secondary + type WebPane struct + Host func() WebViewHost + OnChange func() + Preload string + func (p *WebPane) Build(c *ui.Context, browserURL string) + func (p *WebPane) Err() string + func (p *WebPane) Eval(code string) (any, error) + func (p *WebPane) Load(url string, force bool) + func (p *WebPane) LoadError() string + func (p *WebPane) Ready() bool + func (p *WebPane) Reload() + func (p *WebPane) URL() string + type WebViewHost interface + NewWebView func(opts mygo.WebViewOptions) (*mygo.WebView, error) + type WindowControl int + const ControlClose + const ControlMaximize + const ControlMinimize + const ControlNone + func WindowControls(c *ui.Context, o WindowControlsOpts) WindowControl + type WindowControlsOpts struct + Close string + Maximize string + Maximized bool + Minimize string + Restore string