UNPKG

@devfamily/admiral

Version:

Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.

31 lines (30 loc) 1.09 kB
/// <reference types="react" /> export interface DrawerProps { resetScrollPositionOnClose?: boolean; autoFocus?: boolean; keyboard?: boolean; width?: number | string; height?: number | string; visible?: boolean; closable?: boolean; placement?: PlacementType; title?: React.ReactNode; showMask?: boolean; maskClosable?: boolean; getContainer?: string | HTMLElement | getContainerFunc | false; onClose?: (e: EventType) => void; className?: string; style?: React.CSSProperties; bodyWrapperStyle?: React.CSSProperties; bodyStyle?: React.CSSProperties; headerStyle?: React.CSSProperties; footer?: React.ReactNode; footerStyle?: React.CSSProperties; afterVisibleChange?: (visible: boolean) => void; children?: React.ReactNode; } declare const PlacementTypes: ["top", "right", "bottom", "left"]; declare type PlacementType = typeof PlacementTypes[number]; declare type getContainerFunc = () => HTMLElement; declare type EventType = React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>; export {};