feat(ui): migrate to svelte-5 and storybook

This commit is contained in:
2024-11-02 15:15:09 +01:00
parent 9ba26374db
commit a87add30ff
31 changed files with 5926 additions and 1148 deletions

View File

@@ -1,12 +1,17 @@
<script lang="ts">
export let title = "Details";
export let transparent = false;
interface Props {
title?: string;
transparent?: boolean;
children?: import('svelte').Snippet;
}
let { title = "Details", transparent = false, children }: Props = $props();
</script>
<details class:transparent>
<summary>{title}</summary>
<div class="content">
<slot />
{@render children?.()}
</div>
</details>