Rework modal header structure

This commit is contained in:
Jon Staab
2026-02-02 10:09:14 -08:00
parent 4480132c74
commit fb2d78fd57
55 changed files with 224 additions and 287 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
<script lang="ts">
import type {Snippet} from "svelte"
interface Props {
title?: import("svelte").Snippet
info?: import("svelte").Snippet
children: Snippet
}
const {title, info}: Props = $props()
const {children}: Props = $props()
</script>
<div class="flex flex-col m-auto max-w-xs gap-2 py-4">
<h1 class="heading">{@render title?.()}</h1>
<p class="text-center text-sm opacity-75">{@render info?.()}</p>
{@render children()}
</div>