UNPKG

@blueprintjs/core

Version:
27 lines (26 loc) 892 B
/// <reference types="react" /> import { Panel } from "./panelTypes"; export interface PanelView2Props<T> { /** * Callback invoked when the user presses the back button or a panel invokes * the `closePanel()` injected prop method. */ onClose: (removedPanel: Panel<T>) => void; /** * Callback invoked when a panel invokes the `openPanel(panel)` injected * prop method. */ onOpen: (addedPanel: Panel<T>) => void; /** The panel to be displayed. */ panel: Panel<T>; /** The previous panel in the stack, for rendering the "back" button. */ previousPanel?: Panel<T>; /** Whether to show the header with the "back" button. */ showHeader: boolean; } interface PanelView2Component { <T>(props: PanelView2Props<T>): JSX.Element | null; displayName: string; } export declare const PanelView2: PanelView2Component; export {};