Naturally Pacifist Marsupials

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

    0.6.3 • 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

    // Type definitions for react-leaflet-sidebarv2 0.6
    // Project: https://github.com/condense/react-leaflet-sidebarv2
    // Definitions by: Vikram Pareddy <https://github.com/vikram-gsu>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    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 { Tab, Sidebar };

    Additional Details

    • Last updated: Fri, 15 Oct 2021 18:02:03 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Vikram Pareddy.

    Keywords

    none

    Install

    npm i @types/react-leaflet-sidebarv2

    DownloadsWeekly Downloads

    13

    Version

    0.6.3

    License

    MIT

    Unpacked Size

    5.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • types