Tree
A nested tree with indent guides. Branches spring open, one highlight slides to the selection, and the guides on the path down to it turn to the accent.
$149 once · every Pro piece
Customize
Install
npx shadcn@latest add @obsyde/treeNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { Tree } from '@/components/obsyde/ember/tree/Tree';
export function Example() {
return (
<Tree />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/tree/Tree.tsxcomponentember/tree/tree.cssstylesember/tree/TreeDemo.tsxdemoember/nav-kit/icons.tsxsharedember/nav-kit/motion.tssharedember/shared/spring.tssharedember/shared/accent.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
expandedOpen branches | string | — |
selectedSelected | string | — |