about summary refs log tree commit diff stats
path: root/examples/simple/simple.go
diff options
context:
space:
mode:
authorHans Raaf2020-10-23 14:12:47 +0200
committerGitHub2020-10-23 14:12:47 +0200
commitc6c5fbd0f92667d9a98a232b455ea26180017e4d (patch)
tree1327d3a1e5ca0d1082a8c1f72c6bdbe92ed1d903 /examples/simple/simple.go
parentc99025e6c569827aa5ca8fb3e16545f1b5f821f2 (diff)
downloadgomponents-c6c5fbd0f92667d9a98a232b455ea26180017e4d.tar.lz
gomponents-c6c5fbd0f92667d9a98a232b455ea26180017e4d.tar.zst
gomponents-c6c5fbd0f92667d9a98a232b455ea26180017e4d.zip
Add br and hr element helpers (#30)
Diffstat (limited to 'examples/simple/simple.go')
-rw-r--r--examples/simple/simple.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/simple/simple.go b/examples/simple/simple.go
index 92bc8cc..56747e4 100644
--- a/examples/simple/simple.go
+++ b/examples/simple/simple.go
@@ -44,6 +44,7 @@ func page(props pageProps) g.Node {
 			),
 			el.Body(
 				navbar(navbarProps{path: props.path}),
+				el.Hr(),
 				el.H1(props.title),
 				el.P(g.Text(fmt.Sprintf("Welcome to the page at %v.", props.path))),
 				el.P(g.Text(fmt.Sprintf("Rendered at %v", time.Now()))),