feat(drawer): add shadcn drawer

This commit is contained in:
Ilia Mashkov
2026-02-07 18:00:38 +03:00
parent 780d76dced
commit 41c5ceb848
12 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<script lang="ts">
import { Drawer as DrawerPrimitive } from 'vaul-svelte';
let {
shouldScaleBackground = true,
open = $bindable(false),
activeSnapPoint = $bindable(null),
...restProps
}: DrawerPrimitive.RootProps = $props();
</script>
<DrawerPrimitive.NestedRoot {shouldScaleBackground} bind:open bind:activeSnapPoint {...restProps} />