TreeViewDemo() — supabase Function Reference
Architecture documentation for the TreeViewDemo() function in tree-view-demo.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/design-system/registry/default/example/tree-view-demo.tsx lines 3–43
export default function TreeViewDemo() {
const data = {
name: '',
children: [
{
name: 'Current batch',
},
{
name: 'Older queries',
},
{
name: 'query all users',
},
{
name: 'users in last day',
},
{
name: 'new users over time',
},
],
}
return (
<TreeView
data={flattenTree(data)}
aria-label="directory tree"
className="w-[420px] border bg py-2"
nodeRenderer={({ element, isBranch, isExpanded, getNodeProps, level, isSelected }) => (
<TreeViewItem
isExpanded={isExpanded}
isBranch={isBranch}
isSelected={isSelected}
level={level}
xPadding={16}
name={element.name}
{...getNodeProps()}
/>
)}
/>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free