aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/blog/TableWrapper.svelte
blob: ddf3d730dfebeacce1d50e4aca853887b7f4c6eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script lang="ts">
  import type { Snippet } from 'svelte';

  const {
    children,
    maxwidth = false,
  }: {
    children: Snippet;
    maxwidth?: boolean;
  } = $props();
</script>

<div class={{ 'formatted-table my-1': true, 'w-max': !maxwidth }}>
  {@render children()}
</div>