/** * * DrawerBackdrop is a component that displays the overlay mask behind the drawer. * * [Live Demo](https://www.primereact.org/drawer/) * * @module DrawerBackdrop * @group components * */ import type { ComponentInstance } from '@primereact/types/core'; import type { UseMotionProps } from '@primereact/types/headless/motion'; import type { BaseComponentProps, PassThroughType } from '../..'; import type { DrawerRootInstance } from './DrawerRoot.types'; /** * Defines passthrough(pt) options type in DrawerBackdrop component. */ export type DrawerBackdropPassThroughType = PassThroughType; /** * Defines passthrough(pt) options of DrawerBackdrop component. */ export interface DrawerBackdropPassThrough { /** * Used to pass attributes to the root's DOM element. */ root?: DrawerBackdropPassThroughType>; } /** * Defines valid properties in DrawerBackdrop component. */ export interface DrawerBackdropProps extends BaseComponentProps { /** * Used to apply motion to the backdrop element. It accepts the same properties as useMotion hook. */ motionProps?: UseMotionProps | undefined; } /** * Defines valid state in DrawerBackdrop component. */ export interface DrawerBackdropState { } /** * Defines the methods and properties exposed by DrawerBackdrop component. */ export interface DrawerBackdropExposes { /** * The Drawer component instance. */ drawer: DrawerRootInstance | undefined | null; } /** * Instance of DrawerBackdrop component. */ export type DrawerBackdropInstance = ComponentInstance;