Add fonts, autotable, autotable examples
This commit is contained in:
@@ -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)...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user