11 lines
276 B
Nim
11 lines
276 B
Nim
import happyx
|
|
|
|
component NavButton:
|
|
text: string
|
|
path: cstring = "/"
|
|
`template`:
|
|
tLi(class="list-item cursor-pointer text-white mx-2 my-2 ring-1 ring-white/20 hover:ring-white/50 rounded"):
|
|
tButton:
|
|
{self.text}
|
|
@click:
|
|
route self.path |