Foundation: tokens, theme, icons, i18n, Button, Spinner, gallery scaffold

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 11:59:19 -04:00
commit 119f9047e9
95 files changed
+2489

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
package main
import "github.com/egoist/mygo/ui"
// page is one component's gallery entry.
type page struct {
ID string
Name string
ZhName string
Category string
// Demo builds the interactive example; log records events.
Demo func(c *ui.Context, log func(string))
Code string
Keys string
}
func catalog() []page {
var all []page
for _, g := range [][]page{layoutPages, displayPages, inputPages, choicePages, formPages, datetimePages, navigationPages, dataPages, overlayPages, feedbackPages} {
all = append(all, g...)
}
return all
}