Foundation: tokens, theme, icons, i18n, Button, Spinner, gallery scaffold
This commit is contained in:
95 files changed
+2489
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user