@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
25 lines • 690 B
TypeScript
import React from 'react';
interface ResizeProps {
currentWidth: number;
minWidth: number;
maxWidth: number;
panelRef: React.RefObject<HTMLDivElement>;
handleRef: React.RefObject<HTMLDivElement>;
onResize: (newWidth: number) => void;
position?: 'side-start' | 'side' | 'bottom';
}
export declare function useResize({
currentWidth,
minWidth,
maxWidth,
panelRef,
handleRef,
onResize,
position
}: ResizeProps): {
onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
onDirectionClick: (direction: import("../../../internal/components/drag-handle-wrapper/interfaces").Direction) => void;
onPointerDown: () => void;
relativeSize: number;
};
export {};