drawer-nested.svelte 350 B

123456789101112
  1. <script lang="ts">
  2. import { Drawer as DrawerPrimitive } from "vaul-svelte";
  3. let {
  4. shouldScaleBackground = true,
  5. open = $bindable(false),
  6. activeSnapPoint = $bindable(null),
  7. ...restProps
  8. }: DrawerPrimitive.RootProps = $props();
  9. </script>
  10. <DrawerPrimitive.NestedRoot {shouldScaleBackground} bind:open bind:activeSnapPoint {...restProps} />