# @types/react-panelgroup

> TypeScript definitions for react-panelgroup

Latest version **1.0.6** (published 2024-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-panelgroup
pnpm add @types/react-panelgroup
yarn add @types/react-panelgroup
bun add @types/react-panelgroup
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2024-03-29 |
| First published | 2018-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-panelgroup
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-panelgroup
- npm.io page: https://npm.io/package/@types/react-panelgroup

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.0.6 (latest) — 2024-03-29
- 1.0.5 (ts4.5) — 2023-11-07
- 1.0.3 (ts3.7) — 2021-10-07
- 1.0.2 (ts3.6) — 2021-07-08
- 1.0.1 (ts3.0) — 2019-02-13
- 1.0.4 — 2023-10-18
- 1.0.0 — 2018-12-17

## README

# Installation
> `npm install --save @types/react-panelgroup`

# Summary
This package contains type definitions for react-panelgroup (https://github.com/DanFessler/react-panelgroup).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-panelgroup.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-panelgroup/index.d.ts)
````ts
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> {}

````

### Additional Details
 * Last updated: Fri, 29 Mar 2024 11:35:26 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Quentin Golsteyn](https://github.com/qgolsteyn).

---
_Source: https://npm.io/package/@types/react-panelgroup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
