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

0.4.6 • Public • Published

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 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Jay Anslow.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-treeview

Weekly Downloads

1,640

Version

0.4.6

License

MIT

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • types