Native dialog component #3013
inwardmovement
started this conversation in
3. Feature Ideas
Replies: 2 comments 2 replies
-
@inwardmovement not sure how the plans are for native support. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I found this works great with native component, no alpine involved: /* Animated dialog with entry/exit transitions */
.animate-dialog {
/* Base state (closed) */
@apply opacity-0 scale-95 translate-y-4;
@apply transition-all duration-200 ease-in;
transition-behavior: allow-discrete;
/* Open state */
&[open] {
@apply opacity-100 scale-100 translate-y-0;
@apply duration-300 ease-out;
/* Starting style for entry animation */
@starting-style {
@apply opacity-0 scale-95 translate-y-4;
}
}
/* Backdrop styling */
&::backdrop {
/* Exit state - transparent */
@apply bg-gray-500/0 backdrop-blur-none;
@apply transition-all duration-200 ease-in;
transition-behavior: allow-discrete;
}
&[open]::backdrop {
/* Open state - visible */
@apply bg-gray-500/75 backdrop-blur-sm;
@apply duration-300 ease-out;
/* Starting style for backdrop entry */
@starting-style {
@apply bg-gray-500/0 backdrop-blur-none;
}
}
} this is so clean, and native... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Are there plans to use the HTML5
<dialog>
tag for modal?Beta Was this translation helpful? Give feedback.
All reactions