npm.io
0.4.6 • Published 2 years ago

@types/react-treeview

Licence
MIT
Version
0.4.6
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-treeview

Summary

This package contains type definitions for react-treeview (https://github.com/chenglou/react-treeview).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-treeview.

index.d.ts

import { Component, HTMLAttributes } from "react";

declare namespace TreeView {
    interface TreeProps extends HTMLAttributes<HTMLDivElement> {
        collapsed?: boolean | undefined;
        defaultCollapsed?: boolean | undefined;
        nodeLabel: React.ReactNode;
        itemClassName?: string | undefined;
        treeViewClassName?: string | undefined;
        childrenClassName?: string | undefined;
    }
}

declare class TreeView extends Component<TreeView.TreeProps, any> {
}

export = TreeView;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Jay Anslow.