UNPKG

@reactodia/workspace

Version:

Reactodia Workspace -- library for visual interaction with graphs in a form of a diagram.

28 lines 1.38 kB
import * as React from 'react'; interface CommonWorkspaceLayoutProps { defaultSize?: number; defaultCollapsed?: boolean; collapsedSize?: number; minSize?: number; undocked?: boolean; } export interface WorkspaceLayoutContainerProps extends CommonWorkspaceLayoutProps { animationDuration?: number; children: WorkspaceChild | ReadonlyArray<WorkspaceChild>; } type WorkspaceChild = React.ReactElement<WorkspaceLayoutContainerProps | WorkspaceLayoutItemProps>; export declare function WorkspaceLayoutRow(props: WorkspaceLayoutContainerProps): import("react/jsx-runtime").JSX.Element; export declare function WorkspaceLayoutColumn(props: WorkspaceLayoutContainerProps): import("react/jsx-runtime").JSX.Element; export interface WorkspaceLayoutItemProps extends CommonWorkspaceLayoutProps { id: string; heading?: React.ReactNode; children: React.ReactElement; } export declare function WorkspaceLayoutItem(props: WorkspaceLayoutItemProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>; export interface WorkspaceLayoutResizeContext { onStartResize?: (direction: 'vertical' | 'horizontal') => void; onResize?: (direction: 'vertical' | 'horizontal') => void; } export declare const WorkspaceLayoutResizeContext: React.Context<WorkspaceLayoutResizeContext | null>; export {}; //# sourceMappingURL=workspaceLayout.d.ts.map