forked from didirus/AstralRinth
Add Modal triggers
This commit is contained in:
@@ -18,8 +18,14 @@
|
||||
function close() {
|
||||
open = false
|
||||
}
|
||||
|
||||
function trigger() {
|
||||
open = !open
|
||||
}
|
||||
</script>
|
||||
|
||||
<slot name="trigger" {trigger} />
|
||||
|
||||
{#if open}
|
||||
<div
|
||||
class="modal-background"
|
||||
@@ -130,6 +136,7 @@
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user