70-react-network-diagrams
Version:
24 lines (23 loc) • 764 B
TypeScript
import { default as React } from 'react';
import { default as PropTypes } from 'prop-types';
/**
* This takes a single child and inserts a prop 'width' on it that is the
* current width of the this container. This is handy if you want to surround
* a diagram and have this drive the width.
*/
export class Resizable extends React.Component<any, any, any> {
constructor(props: any);
state: {
width: number;
};
handleResize(): void;
componentDidMount(): void;
componentWillUnmount(): void;
render(): import("react/jsx-runtime").JSX.Element;
container: HTMLDivElement | null | undefined;
}
export namespace Resizable {
namespace propTypes {
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
}
}