diff options
Diffstat (limited to 'html/attributes.go')
-rw-r--r-- | html/attributes.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go index 2e9a05a..be8393e 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -133,6 +133,10 @@ func DataAttr(name, v string) g.Node { return Data(name, v) } +func SlotAttr(v string) g.Node { + return g.Attr("slot", v) +} + func For(v string) g.Node { return g.Attr("for", v) } |