npm install --save @types/react-panelgroup
This package contains type definitions for react-panelgroup (https://github.com/DanFessler/react-panelgroup).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-panelgroup.
import * as React from "react";
/**
* Interface used to define a number of options for a panel.
*/
export interface PanelWidth {
size?: number | undefined;
minSize?: number | undefined;
resize?: "fixed" | "dynamic" | "stretch" | undefined;
snap?: number[] | undefined;
}
export interface PropTypes {
children?: React.ReactNode;
spacing?: number | undefined;
borderColor?: string | undefined;
panelColor?: string | undefined;
direction?: "row" | "column" | undefined;
panelWidths?: Array<PanelWidth | null> | undefined;
onUpdate?: ((data: PanelWidth[]) => void) | undefined;
onResizeStart?: ((data: PanelWidth[]) => void) | undefined;
onResizeEnd?: ((data: PanelWidth[]) => void) | undefined;
}
/**
* React component that allows for the creation of resizable panels.
*/
export default class PanelGroup extends React.Component<PropTypes> {}
- Last updated: Fri, 29 Mar 2024 11:35:26 GMT
- Dependencies: @types/react
These definitions were written by Quentin Golsteyn.