tui-catalogue

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

tui-catalogue renders the complete go-widgets/toolkit widget catalogue (every kind with a public constructor) into a scrollable cell-grid frame written to stdout as an ANSI stream. Companion to svg/cmd/gallery-render: same "one entry per widget kind" pattern applied to the terminal backend via tui.RenderToolkit.

The default frame is 120 cells wide and however tall the entries() list requires (roughly 4 × ceil(N/2) rows for N widgets). Pipe through `less -R` if your terminal's scrollback can't hold the whole frame:

go run . | less -R

Force a specific size + dark theme:

go run . --cols=140 --rows=200 --theme=dark

Or narrow the selection with --widget=NAME to render one widget at a time (useful to eyeball a single kind at a larger scale):

go run . --widget=alert --cols=60 --rows=6

Jump to

Keyboard shortcuts

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