import { default as React } from 'react'; import { StaffbaseDrawerProps } from './types/StaffbaseDrawerProps'; /** * StaffbaseDrawer Component * * A drawer component that renders using a React portal to avoid DOM conflicts. * The drawer slides in from the right side of the screen and can be closed by * clicking the overlay, pressing ESC, or swiping right on mobile devices. * @example * ```tsx * setIsOpen(false)}> *
Drawer content goes here
*
* ``` * @param {StaffbaseDrawerProps} props - Component props * @param {React.ReactNode} props.children - Content to be displayed inside the drawer * @param {boolean} [props.modalWidth] - When variant is 'modal', the panel width (e.g. '90vw', 'min(720px, 90vw)') * @param {() => void} props.onClose - Function called when the drawer should be closed * @param {() => void} [props.onClosed] - Optional callback function called after the drawer is fully closed * @param {boolean} props.open - Whether the drawer is open or closed * @param {string | HTMLElement | ShadowRoot | null} [props.portalContainer] - Optional portal target (selector, element, or ShadowRoot) * @returns {React.ReactElement | null} The rendered drawer or null */ export declare const StaffbaseDrawer: ({ children, closeLabel, hideCloseButton, hideTitle, modalWidth, onClose, onClosed, open, portalContainer, title, variant, }: StaffbaseDrawerProps) => React.ReactElement | null; export default StaffbaseDrawer; //# sourceMappingURL=StaffbaseDrawer.d.ts.map