import type * as React from 'react'; import { ButtonVariation } from '../Button/Button'; export interface DrawerProps { /** * Gives more context to screen readers on the Drawer close button. */ ariaLabel?: string; /** * Pass `true` to have the dialog close when its backdrop pseudo-element is clicked. * * Note: This only works when `hasFocusTrap` is also set to `true`, since that causes * the dialog to be opened with `showModal()` which enables the backdrop. */ backdropClickExits?: boolean; /** * Helpful description of the drawer for screenreaders. An alias for `ariaLabel` specifically added to improve accessibility for the web component version of this component. */ closeButtonAriaLabel?: string; closeButtonText?: React.ReactNode; closeButtonVariation?: ButtonVariation; children: React.ReactNode; className?: string; footerBody?: React.ReactNode; footerTitle?: React.ReactNode; /** * Enables focus trap functionality within Drawer. */ hasFocusTrap?: boolean; /** * Text for the Drawer heading. Required because the `heading` will be focused on mount. */ heading: React.ReactNode; /** * A unique `id` to be used on heading element to label multiple instances of Drawer. */ headingId?: string; /** * Heading type to override default `