UNPKG

dnd-kit-sortable-tree-eshaffer

Version:

This is a Tree component extracted from [dndkit](https://github.com/clauderic/dnd-kit) examples and abstracted a bit. Here's how it could look like (visuals are completely customizable via css though) [![img.png](img.png)](https://shaddix.github.io/dnd-ki

11 lines (10 loc) 351 B
import React from 'react'; import { TreeItems } from '../../../src'; import { TreeItemData } from '../TreeItemData'; export declare const initialItems: TreeItems<TreeItemData>; export declare type Props = { indentationWidth: number; indicator: boolean; disableSorting: boolean; }; export declare const TreeRoot: React.FC<Props>;