Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA navigation tree with Expand all, Collapse all and Reveal current page controls. Use this when a long sidebar leaves people lost after browsing, and one click should restore the view.
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 sidebars deeper than two levels where people open many sections while looking for something.
Do not use it for shallow menus, or when the sidebar already shows only the current section.
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. |
onNavigate | (node, event) => void | - | A link was activated. |
aria-label | string | "Navigation" | Names the navigation. |
aria-current on the current page.The pattern ships with a Testing Library test (collapse-all-nav.test.tsx) that covers expand all, collapse all, reveal and the initial state.