aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lustre/element/svg.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lustre/element/svg.gleam b/src/lustre/element/svg.gleam
index 9f741b5..74aa73e 100644
--- a/src/lustre/element/svg.gleam
+++ b/src/lustre/element/svg.gleam
@@ -340,8 +340,8 @@ pub fn path(attrs: List(Attribute(msg))) -> Element(msg) {
}
///
-pub fn text(attrs: List(Attribute(msg))) -> Element(msg) {
- namespaced(namespace, "text", attrs, [])
+pub fn text(attrs: List(Attribute(msg)), content: String) -> Element(msg) {
+ namespaced(namespace, "text", attrs, [element.text(content)])
}
///