12 lines
445 B
Svelte
12 lines
445 B
Svelte
<script lang="ts">
|
|
import { Drawer as DrawerPrimitive } from "vaul-svelte";
|
|
|
|
type $$Props = DrawerPrimitive.Props;
|
|
export let shouldScaleBackground: $$Props["shouldScaleBackground"] = true;
|
|
export let open: $$Props["open"] = false;
|
|
export let activeSnapPoint: $$Props["activeSnapPoint"] = undefined;
|
|
</script>
|
|
|
|
<DrawerPrimitive.Root {shouldScaleBackground} bind:open bind:activeSnapPoint {...$$restProps}>
|
|
<slot />
|
|
</DrawerPrimitive.Root>
|