From dee571dd08576221fed28b2851e8dfe26a8129f6 Mon Sep 17 00:00:00 2001 From: Mike Fitzgerald Date: Tue, 14 May 2024 07:25:32 +0200 Subject: =?UTF-8?q?=F0=9F=94=80=20Add=20missing=20dialog=20attribute.=20(#?= =?UTF-8?q?128)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lustre/attribute.gleam | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/lustre/attribute.gleam b/src/lustre/attribute.gleam index 7b3248d..90b7963 100644 --- a/src/lustre/attribute.gleam +++ b/src/lustre/attribute.gleam @@ -339,3 +339,10 @@ pub fn form_novalidate(value: Bool) -> Attribute(msg) { pub fn form_target(target: String) -> Attribute(msg) { attribute("formtarget", target) } + +// DIALOGS --------------------------------------------------------------------- + +/// +pub fn open(is_open: Bool) -> Attribute(msg) { + property("open", is_open) +} -- cgit v1.2.3