Skip to content

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/tree

Needs 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.tsxcomponent
  • ember/tree/tree.cssstyles
  • ember/tree/TreeDemo.tsxdemo
  • ember/nav-kit/icons.tsxshared
  • ember/nav-kit/motion.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
expandedOpen branchesstring—
selectedSelectedstring—