UNPKG

@geist-ui/react

Version:

Modern and minimalist React UI library.

18 lines (17 loc) 680 B
import React, { MouseEvent } from 'react'; import { DrawerPlacement } from "./helper"; interface Props { visible?: boolean; keyboard?: boolean; disableBackdropClick?: boolean; onClose?: () => void; onContentClick?: (event: MouseEvent<HTMLElement>) => void; wrapClassName?: string; placement?: DrawerPlacement; } declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>; export declare type DrawerProps = Props & NativeAttrs; declare const Drawer: React.ForwardRefExoticComponent<Props & NativeAttrs & { children?: React.ReactNode; } & import("../use-scaleable").ScaleableProps & React.RefAttributes<unknown>>; export default Drawer;