···11<script lang="ts">
22 import type { Snippet } from 'svelte';
3344- /**
55- * Sheet (Drawer) component
66- *
77- * A sliding panel that appears from the side of the screen.
88- * Built on top of Dialog primitive with custom positioning.
99- */
1010-44+ /** Which side the sheet slides in from */
115 type Side = 'left' | 'right' | 'top' | 'bottom';
126137 type Props = {
1414- /** Whether the sheet is open */
158 open: boolean;
1616- /** Callback when sheet should close */
179 onClose?: () => void;
1818- /** Sheet title (for accessibility) */
1910 title?: string;
2020- /** Which side the sheet slides in from (default: 'right') */
2111 side?: Side;
2222- /** Whether clicking backdrop closes sheet (default: true) */
2312 closeOnBackdrop?: boolean;
2424- /** Whether escape key closes sheet (default: true) */
2513 closeOnEscape?: boolean;
2626- /** Custom class for the sheet content */
2714 class?: string;
2815 children?: Snippet;
2916 };