summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/lib/tabs/DetailsSection.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/lib/tabs/DetailsSection.svelte')
-rw-r--r--frontend/src/lib/tabs/DetailsSection.svelte6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/lib/tabs/DetailsSection.svelte b/frontend/src/lib/tabs/DetailsSection.svelte
index 9a6ad51..5514aa3 100644
--- a/frontend/src/lib/tabs/DetailsSection.svelte
+++ b/frontend/src/lib/tabs/DetailsSection.svelte
@@ -1,10 +1,12 @@
<script lang="ts">
- export let title: string;
+ import type { Snippet } from 'svelte';
+
+ let { title, children }: { title: string; children?: Snippet } = $props();
</script>
<section class="flex flex-col gap-1">
<h2 class="text-base font-medium">{title}</h2>
<div class="flex flex-wrap gap-1 text-gray-300">
- <slot />
+ {@render children?.()}
</div>
</section>