Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + const DefaultAutocompleteMaxVisible + const DefaultPickerMaxVisible + var ActionMenu = trail.FC("ActionMenu", func(props ActionMenuProps) trail.Node { ... }) + var Autocomplete = trail.FC("Autocomplete", func(props AutocompleteProps) trail.Node { ... }) + var Button = kitex.FCC("Button", func(props ButtonProps) kitex.Node { ... }) + var ButtonBaseStyle = ...(0, 1) + var CodeBlock = kitex.FC("CodeBlock", func(props CodeBlockProps) kitex.Node { ... }) + var KeyboardHint = trail.FC("KeyboardHint", func(props KeyboardHintProps) trail.Node { ... }) + var Markdown = kitex.FC("Markdown", func(props MarkdownProps) kitex.Node { ... }) + var OptionList = trail.FC("OptionList", func(props OptionListProps) trail.Node { ... }) + var ScrollViewer = trail.FCC("ScrollViewer", func(props ScrollViewerProps) trail.Node { ... }) + func ClampCursor(cur, count int) int + func HighlightShellSpans(cmd string, scheme *theme.Scheme, base color.Color) []trail.Node + func MenuDigit(k key.Key) int + func ResolveTokenStyle(t *theme.Scheme, tokType chroma.TokenType) style.Style + func StepCursor(cur, count int, k event.KeyEvent) (next int, handled bool) + type ActionMenuItem struct + Badge string + BadgeStyle *style.Style + ID string + Label string + Shortcut string + type ActionMenuProps struct + Disabled bool + Indent int + InitialIndex int + Items []ActionMenuItem + Numbered bool + OnChange func(index int) + OnSelect func(index int, item ActionMenuItem) + Selected *int + UnselectedStyle *style.Style + type AttachmentRefNode struct + IsDir bool + Label string + RefType string + SymKind string + Target string + func (n *AttachmentRefNode) Dump(src []byte, level int) + func (n *AttachmentRefNode) Kind() ast.NodeKind + type AutocompleteEdit struct + Cursor int + Value string + type AutocompleteOptions struct + Cursor int + Disabled bool + Engine *autocomplete.Engine + Value string + type AutocompleteProps struct + Bindings []KeyBinding + State AutocompleteState + Views map[string]AutocompleteView + type AutocompleteState struct + Accept func() (AutocompleteEdit, error) + Dismiss func() bool + Down func() bool + Error error + IsLoading bool + IsOpen bool + Result autocomplete.Result + Selected int + Up func() bool + func UseAutocomplete(opts AutocompleteOptions) AutocompleteState + type AutocompleteView func(autocomplete.Result, int) trail.Node + type ButtonColor string + const ButtonBase + const ButtonError + const ButtonInfo + const ButtonPrimary + const ButtonSecondary + const ButtonSuccess + const ButtonTertiary + type ButtonProps struct + Active bool + ActiveStyle style.Style + Children []kitex.Node + Color ButtonColor + Disabled bool + EndIcon kitex.Node + HoverStyle style.Style + Key string + OnClick func() + StartIcon kitex.Node + Style style.Style + Variant ButtonVariant + type ButtonVariant string + const ButtonOutline + const ButtonSolid + const ButtonText + const ButtonTonal + type CodeBlockProps struct + Code string + Compact bool + GutterMinWidth int + HideHeader bool + Lang string + ShowLineNumbers bool + StartLine int + Style style.Style + Wrap bool + type Column struct + Align style.TextAlign + Style style.Style + Width int + type Cursor struct + HandleKey func(k event.KeyEvent) bool + Index int + Move func(delta int) + Set func(i int) + func UseCursor(count, initial int) Cursor + type KeyBinding struct + Key string + Label string + type KeyboardHintProps struct + Bindings []KeyBinding + type MarkdownProps struct + Attachments []api.Attachment + IsDirectory func(path string) bool + OnAttachmentClick func(refType, rawValue string) + PlainCodeBlocks bool + Source string + Style style.Style + type MathBlockNode struct + Raw string + func (*MathBlockNode) Kind() ast.NodeKind + func (n *MathBlockNode) Dump(src []byte, level int) + func (n *MathBlockNode) IsRaw() bool + type MathInlineNode struct + Raw string + func (*MathInlineNode) Kind() ast.NodeKind + func (n *MathInlineNode) Dump(src []byte, level int) + type Option struct + CellNodes []trail.Node + Cells []string + Current bool + Description string + Icon trail.Node + Label string + Search string + Value string + type OptionListProps struct + Columns []Column + EmptyText string + GroupLabel func(opt Option) string + MaxVisible int + Options []Option + Selected int + Styles *OptionListStyles + type OptionListStyles struct + Description style.Style + Option style.Style + Selected style.Style + type ScrollOptions struct + ExtraDeps []any + FollowTail bool + InitialPos int + OnChange func(pos int) + PageOnly bool + PageStep int + type ScrollState struct + AutoScroll bool + HandleKey func(input string, k event.KeyEvent) bool + Pos int + Ref kitex.Ref[dom.Element] + Reset func() + SetPos func(pos int) + func UseScroll(opts ScrollOptions) ScrollState + type ScrollViewerAction struct + Handler func() + Keys []string + type ScrollViewerProps struct + Actions []ScrollViewerAction + Bindings []KeyBinding + Children []trail.Node + Disabled bool + EmptyText string + ExtraDeps []any + FollowTail bool + Header []trail.Node + HeaderMarginBottom int + InitialScroll int + Markdown string + MaxHeight int + Meta []trail.Node + OnClose func() + OnScroll func(pos int) + OuterStyle *style.Style + ViewportStyle *style.Style