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.