From 1c322cd7bddc48ba87448f7ad77afa1c61a732ea Mon Sep 17 00:00:00 2001 From: Korbs Date: Thu, 22 Aug 2024 03:42:24 -0400 Subject: [PATCH] Update dialog --- src/Dialog.astro | 162 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 143 insertions(+), 19 deletions(-) diff --git a/src/Dialog.astro b/src/Dialog.astro index 3481145..9640e3d 100644 --- a/src/Dialog.astro +++ b/src/Dialog.astro @@ -2,39 +2,163 @@ // Properties const { Name, - Title = 'Dialog Title', - Description = 'Description', + Title = "Dialog Title", + Description = "Description", CloseButton = true, QuestionTooltip = false, // Requires Astro Tooltip: https://code.juliancataldo.com/component/astro-tooltips/#installation Actions = false, - BlurryBackdrop = true -} = Astro.props + BlurryBackdrop = true, +} = Astro.props; --- -
+

{Title}

-

{Description}

- {QuestionTooltip ? - - : - null + { + QuestionTooltip ? ( + + ) : null + } + { + CloseButton ? ( + + ) : null } - {CloseButton ? : null}
- +
- {Actions ? -
- -
- : - null + { + Actions ? ( +
+ +
+ ) : null } -
\ No newline at end of file + + +