Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA navigation tree that remembers which sections are open between visits, without breaking when storage is blocked. Use this when people return to the same long sidebar and expect it to look as they left it.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it for app and docs sidebars that stay the same over many visits.
Do not use it to remember anything sensitive, or for state that must follow the person across devices (store that on the server).
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
nodes | TreeNode[] | - | The navigation. |
currentHref | string | - | The current page. |
storageKey | string | - | Where to save the open sections. |
defaultExpanded | string[] | [] | Used before anything is saved. |
aria-current.The pattern ships with a Testing Library test (persistent-nav-tree.test.tsx) that covers saving, restoring, broken stored values and a storage that throws.