UNPKG

react-resizable

Version:
19 lines (18 loc) 798 B
import * as React from 'react'; import PropTypes from 'prop-types'; import type { Props as ResizableProps, ResizeCallbackData, ResizableBoxState } from './propTypes'; type ResizableBoxProps = Omit<ResizableProps, 'children'> & { style?: React.CSSProperties; children?: React.ReactElement<any>; className?: string | null; }; export default class ResizableBox extends React.Component<ResizableBoxProps, ResizableBoxState> { static propTypes: { children: PropTypes.Requireable<PropTypes.ReactElementLike>; }; state: ResizableBoxState; static getDerivedStateFromProps(props: ResizableBoxProps, state: ResizableBoxState): ResizableBoxState | null; onResize: (e: React.SyntheticEvent, data: ResizeCallbackData) => void; render(): React.ReactNode; } export {};