@base-ui/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
16 lines • 764 B
text/typescript
import { DialogHandle } from "../dialog/store/DialogHandle.mjs";
/**
* Controls a Drawer imperatively and associates detached `Drawer.Trigger` components with a
* `Drawer.Root`. Create one with `Drawer.createHandle()` and pass it to the `handle` prop of the
* root and of any triggers rendered outside of it.
*
* The imperative methods take effect only while a root using this handle is mounted; calls made
* before a root attaches (or after it unmounts) are ignored.
*/
export declare class DrawerHandle<Payload> extends DialogHandle<Payload> {
private readonly __drawerBrand;
}
/**
* Creates a new handle to connect a Drawer.Root with detached Drawer.Trigger components.
*/
export declare function createDrawerHandle<Payload>(): DrawerHandle<Payload>;