Add fonts, autotable, autotable examples

This commit is contained in:
2026-07-13 13:01:26 -04:00
parent ea3d2a6d03
commit cf8342f8d4
71 changed files with 16084 additions and 1443 deletions

View File

@@ -61,11 +61,11 @@ func Badge(p BadgeProps, children ...*vdom.VNode) *vdom.VNode {
if p.Title != "" {
mods = append(mods, vdom.Attr("title", p.Title))
}
return vdom.El("button", kids(mods, children)...)
return vdom.Button(kids(mods, children)...)
}
mods := []vdom.Mod{vdom.Attr("class", badgeClass(p))}
if p.Title != "" {
mods = append(mods, vdom.Attr("title", p.Title))
}
return vdom.El("span", kids(mods, children)...)
return vdom.Span(kids(mods, children)...)
}