import type { ModalSize } from '../types';
import { Modal, type ModalProps } from './Modal';
import { useDefaults } from '../runtime';
/** Props for {@link Drawer}. */
export interface DrawerProps extends ModalProps {
/**
* Edge the drawer is attached to.
* @default 'right'
*/
side?: 'left' | 'right';
}
/**
* A modal panel that slides in from the left or right edge. Same behavior as {@link Dialog}:
* focus is trapped, the page behind is inert, Esc closes it.
*
* @example
* ```tsx
* Menu} title="Navigation">
* …
*
* ```
*/
export function Drawer({ side = 'right', ...props }: DrawerProps) {
const own = useDefaults('Drawer');
return (
);
}