Documentation
¶
Index ¶
- func Routes(rs ...Route)
- func Start(addr string)
- func UseState(ctx Ctx, key string, initial interface{}) (interface{}, func(interface{}))
- type Ctx
- type Modifier
- func Bg(c string) Modifier
- func Color(c string) Modifier
- func FontSize(px int) Modifier
- func Height(px int) Modifier
- func Id(id string) Modifier
- func Margin(px int) Modifier
- func MarginBottom(px int) Modifier
- func MarginLeft(px int) Modifier
- func MarginRight(px int) Modifier
- func MarginTop(px int) Modifier
- func Name(name string) Modifier
- func OnChange(fn interface{}) Modifier
- func OnClick(fn interface{}) Modifier
- func Padding(px int) Modifier
- func Placeholder(text string) Modifier
- func Rounded(px int) Modifier
- func Type(t string) Modifier
- func Value(val string) Modifier
- func Width(px int) Modifier
- type Node
- type Props
- type Route
- type UI
- type Widget
- func Button(children ...interface{}) Widget
- func Div(children ...Widget) Widget
- func Form(action string, method string, children ...Widget) Widget
- func H1(children ...interface{}) Widget
- func H2(children ...interface{}) Widget
- func H3(children ...interface{}) Widget
- func H4(children ...interface{}) Widget
- func H5(children ...interface{}) Widget
- func H6(children ...interface{}) Widget
- func Input(mods ...Modifier) Widget
- func Link(href string, text string, mods ...Modifier) Widget
- func P(children ...interface{}) Widget
- func Text(value string, mods ...Modifier) Widget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Modifier ¶ added in v1.0.1
type Modifier func(*Props)
func MarginBottom ¶ added in v1.0.1
func MarginLeft ¶ added in v1.0.1
func MarginRight ¶ added in v1.0.1
func Placeholder ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.