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

14 lines (12 loc) 509 B
import { SimpleTreeItemWrapper } from './ui/simple/SimpleTreeItemWrapper'; import { FolderTreeItemWrapper } from './ui/folder/FolderTreeItemWrapper'; import { SortableTree, SortableTreeProps } from './SortableTree'; import { flattenTree } from './utilities'; import type { TreeItems, TreeItemComponentProps, TreeItem } from './types'; export { flattenTree, SortableTree, SimpleTreeItemWrapper, FolderTreeItemWrapper, }; export type { TreeItemComponentProps, TreeItems, TreeItem, SortableTreeProps };