synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
19 lines • 903 B
TypeScript
import { SxProps, Theme } from '@mui/material';
import { ReactNode } from 'react';
export interface ResizeHandleProps {
onMouseDown: (e: React.MouseEvent) => void;
sx?: SxProps<Theme>;
}
export declare function ResizeHandle({ onMouseDown, sx }: ResizeHandleProps): import("react/jsx-runtime").JSX.Element;
export interface ResizableContainerProps {
children: ReactNode;
width: number;
height: number;
onResizeStart: (e: React.MouseEvent) => void;
showResizeHandle?: boolean;
resizeHandleSx?: SxProps<Theme>;
sx?: SxProps<Theme>;
}
/** See DraggableDialog for an example on how to use useResizable with a ResizableContainer */
export declare function ResizableContainer({ children, width, height, onResizeStart, showResizeHandle, resizeHandleSx, sx, }: ResizableContainerProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=ResizableContainer.d.ts.map