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
Click to show internal directories.
Click to hide internal directories.