From 57d124d9c0b5c8bbf5157b407599f38cb466965d Mon Sep 17 00:00:00 2001 From: Christopher Dieringer Date: Sun, 7 Jan 2024 11:06:03 -0800 Subject: =?UTF-8?q?=F0=9F=94=80=20Add=20role=20attribute=20(#34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lustre/attribute.gleam | 5 +++++ 1 file changed, 5 insertions(+) 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 ---------------------------------------------------------------------- /// -- cgit v1.2.3