ui-gallery

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 38 Imported by: 0 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

Overview

Command ui-gallery renders the Tango self-drawn component gallery to PNG files with the headless ui.Driver:

go run ./examples/ui-gallery            # writes build/ui-gallery/*.png
go run ./examples/ui-gallery -only Button
go run ./examples/ui-gallery -theme shadcn   # <Name>-shadcn.png, <Name>-shadcn-dark.png
go run ./examples/ui-gallery -theme hc       # hc/dashboard-antd.png next to hc/dashboard-antd-hc.png, Form, Switch, Checkbox …
go run ./examples/ui-gallery -dir rtl        # <Name>-rtl.png: every shot right to left (combines with -theme)
go run ./examples/ui-gallery -mirror-check   # LTR/RTL geometry check of every page (prints a summary)

Outputs: index.png (the gallery home: every component by group), overview.png (general + form controls), dashboard-antd.png, dashboard-element.png, dashboard-dark.png, overlays.png and one PNG per registered component page under components/.

Source Files

Directories

Path Synopsis
Package gallery is the page registry of the ui-gallery example.
Package gallery is the page registry of the ui-gallery example.

Jump to

Keyboard shortcuts

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