aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Fitzgerald <mike@xpressivecode.com>2024-05-14 07:25:32 +0200
committerGitHub <noreply@github.com>2024-05-14 07:25:32 +0200
commitdee571dd08576221fed28b2851e8dfe26a8129f6 (patch)
treedb716a9af63680dae0928c8e4e1f46d38778ebed /src
parent90a665d18e393d4084a4634a0677b9d8108569db (diff)
downloadlustre-dee571dd08576221fed28b2851e8dfe26a8129f6.tar.gz
lustre-dee571dd08576221fed28b2851e8dfe26a8129f6.zip
🔀 Add missing dialog attribute. (#128)
Diffstat (limited to 'src')
-rw-r--r--src/lustre/attribute.gleam7
1 files changed, 7 insertions, 0 deletions
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)
+}