Skip to content

Commit

Permalink
add example nodes shape
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Jul 30, 2023
1 parent 8df3b88 commit 8dddfdb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions demo/examples/nodes-shape.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { SortableTreeNodeData } from 'sortable-tree';

const nodes: SortableTreeNodeData[] = [
{
data: {
title: 'Homepage',
path: '/',
},
nodes: [
{
data: {
title: 'Page',
path: '/page',
},
nodes: [
// { ... }, { ... }
],
},
// { ... }, { ... }
],
},
];

0 comments on commit 8dddfdb

Please sign in to comment.