Skip to content

Commit

Permalink
feat: content editable attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Oct 30, 2024
1 parent f5413ad commit 8255c36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions attrib.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,3 +506,8 @@ func List(v string) Node {
func OnePasswordIgnore() Node {
return Attribute("data-1p-ignore")
}

// ContentEditable sets the contenteditable attribute for elements.
func ContentEditable(v string) Node {
return Attribute("contenteditable", v)
}

0 comments on commit 8255c36

Please sign in to comment.