The Controlled example from the Tree docs.
npx shadcn@latest add @hextaui/tree-controlled
tree-controlled