UNPKG

@alpernative/tree

Version:

[`@alpernative/tree`](https://www.npmjs.com/package/@alpernative/tree) is a high-performance, customizable tree component for React. It provides a wide range of features, including virtualization, drag-and-drop, and nested drag-and-drop support.

12 lines (11 loc) 578 B
import { CSSProperties, Component } from 'react'; import { DraggableProvidedDraggableProps, DraggableStateSnapshot } from '@hello-pangea/dnd'; import { Props } from './TreeItem-types'; export type DraggableProvidedProps = DraggableProvidedDraggableProps & { style?: CSSProperties; }; export default class TreeItem extends Component<Props> { shouldComponentUpdate(nextProps: Props): boolean; patchDraggableProps: (draggableProps: DraggableProvidedDraggableProps, snapshot: DraggableStateSnapshot) => DraggableProvidedProps; render(): import("react").ReactNode; }