UNPKG

@atlaskit/drawer

Version:

A drawer is a panel that slides in from the left side of the screen.

18 lines (17 loc) • 602 B
type TDrawerStackOpts = { /** * Whether the calling drawer is open. The drawer joins the stack while open * and leaves it on close or unmount. */ isOpen: boolean; /** * Fired when the calling drawer's position in the stack changes. */ onStackChange?: (newStackIndex: number) => void; }; /** * Returns the position of the calling drawer in the drawer stack. A stack index * of `0` is the foreground (top of the stack); higher numbers are further back. */ export default function useDrawerStack({ isOpen, onStackChange }: TDrawerStackOpts): number; export {};