UNPKG

@atlaskit/tree

Version:

A React Component for displaying expandable and sortable tree hierarchies

9 lines (8 loc) 476 B
import { Component } from 'react'; import { DraggableProvidedDraggableProps, DraggableStateSnapshot } from 'react-beautiful-dnd-next'; import { Props } from './TreeItem-types'; export default class TreeItem extends Component<Props> { shouldComponentUpdate(nextProps: Props): boolean; patchDraggableProps: (draggableProps: DraggableProvidedDraggableProps, snapshot: DraggableStateSnapshot) => DraggableProvidedDraggableProps; render(): import("react").ReactNode; }