summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/statistics/StatGroup.svelte
blob: e84c5551ddcb1172412663836f9f4feec21cdb20 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                  


                                                                                  






                                                                                                      
                                      

              
<script lang="ts">
	import type { Snippet } from 'svelte';

	let { title, children }: { title: string; children?: Snippet } = $props();
</script>

<section
	class="flex flex-col gap-2 rounded bg-slate-900 p-2 font-medium shadow-md shadow-slate-950/30"
>
	<h2 class="text-2xl">{title}</h2>
	<div class="flex flex-row flex-wrap gap-10">
		{@render children?.()}
	</div>
</section>