Add tooltip to CopyButton component

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-07-23 22:26:32 -06:00
parent b6a364f584
commit abd02fc0ce

View File

@@ -51,7 +51,8 @@ func copyButton(props copyButtonProps) gomponents.Node {
sc := copyButtonScript(id, props.TextToCopy)
return html.Div(
html.Class("inline-block"),
html.Class("inline-block tooltip tooltip-right"),
html.Data("tip", "Copy to clipboard"),
sc.script,
html.Button(
components.Classes{