@types/react-leaflet-sidebarv2
TypeScript icon, indicating that this package has built-in type declarations

0.6.6 • Public • Published

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

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

Credits

These definitions were written by Vikram Pareddy.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @types/react-leaflet-sidebarv2

Weekly Downloads

23

Version

0.6.6

License

MIT

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • types