# @types/react-leaflet-sidebarv2

> TypeScript definitions for react-leaflet-sidebarv2

Latest version **0.6.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.6.6 |
| Published | 2023-11-07 |
| First published | 2019-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.6.6 (latest) — 2023-11-07
- 0.6.3 (ts3.7) — 2021-10-15
- 0.6.2 (ts3.6) — 2021-07-08
- 0.6.1 (ts2.8) — 2020-01-16
- 0.6.5 — 2023-10-18
- 0.6.4 — 2023-09-27
- 0.6.0 — 2019-04-16

## README

# Installation
> `npm install --save @types/react-leaflet-sidebarv2`

# Summary
This package contains type definitions for react-leaflet-sidebarv2 (https://github.com/condense/react-leaflet-sidebarv2).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-leaflet-sidebarv2.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-leaflet-sidebarv2/index.d.ts)
````ts
import * as React from "react";

type Icon = string | React.ReactElement;
type Anchor = "top" | "bottom";
type Position = "left" | "right";

interface TabProps {
    children?: React.ReactNode;
    id: string;
    header: string;
    icon: Icon;
    anchor?: Anchor | undefined;
    disabled?: boolean | undefined;
    onClose?: (() => void) | undefined;
    closeIcon?: Icon | undefined;
    position?: Position | undefined;
    active?: boolean | undefined;
}

declare class Tab extends React.Component<TabProps, any> {}

type TabType = React.ReactElement<Tab> | Array<React.ReactElement<Tab>>;

interface SidebarProps {
    id: string;
    collapsed: boolean;
    position: Position;
    selected: string;
    closeIcon?: Icon | undefined;
    onClose?: (() => void) | undefined;
    onOpen?: ((id: string) => void) | undefined;
    children: TabType;
}

declare class Sidebar extends React.Component<SidebarProps, any> {}

export { Sidebar, Tab };

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Vikram Pareddy](https://github.com/vikram-gsu).

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