diff options
author | Christopher Dieringer <cdaringe@users.noreply.github.com> | 2024-01-07 11:06:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-07 19:06:03 +0000 |
commit | 57d124d9c0b5c8bbf5157b407599f38cb466965d (patch) | |
tree | e75a5ec78c300a5cf9edd9ea4933672059770ff2 | |
parent | 775bc596ac84f5b28b4e0e1654525a360002711f (diff) | |
download | lustre-57d124d9c0b5c8bbf5157b407599f38cb466965d.tar.gz lustre-57d124d9c0b5c8bbf5157b407599f38cb466965d.zip |
🔀 Add role attribute (#34)
-rw-r--r-- | src/lustre/attribute.gleam | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lustre/attribute.gleam b/src/lustre/attribute.gleam index 7653eca..24c26df 100644 --- a/src/lustre/attribute.gleam +++ b/src/lustre/attribute.gleam @@ -162,6 +162,11 @@ pub fn id(name: String) -> Attribute(msg) { attribute("id", name) } +/// +pub fn role(name: String) -> Attribute(msg) { + attribute("role", name) +} + // INPUTS ---------------------------------------------------------------------- /// |