UNPKG

resizable-container

Version:

A resizable and collapsible container component for React applications.

24 lines (20 loc) 717 B
import { ReactNode, FC } from 'react'; type ResizableContainerProps = { children: ReactNode; direction?: "right" | "left" | "top" | "bottom"; toggleKey?: string; initialSize?: number | string; maxSize?: number | string; minSize?: number | string; boundSize?: number | string; onResize?: (size: number) => void; animationDuration?: number; storageKey: string; ariaLabel?: string; containerClassName?: string; sliderClassName?: string; toggleButtonClassName?: string; toggleButtonIcon?: ReactNode; }; declare const ResizableContainer: FC<ResizableContainerProps>; export { ResizableContainer, type ResizableContainerProps, ResizableContainer as default };