Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA category tree with a switch that hides categories without items, removes parents left with nothing and tells you how many were hidden. Use this when a large taxonomy is mostly empty and people want to see only what is in use.
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 admin screens with large taxonomies, where most categories hold nothing and people are looking for the ones in use.
Do not use it where an empty category is meaningful, such as a place to start filing: show those by default.
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 |
|---|---|---|---|
categories | TreeNode<CategoryUse>[] | - | Leaves carry data.items. |
defaultHideEmpty | boolean | true | Start with empty categories hidden. |
defaultExpanded | string[] | all branches | Open branches. |
role="switch" with a visible label.The pattern ships with a Testing Library test (empty-category-toggle.test.tsx) that covers hiding, the parent removal, the hidden count and the all-empty tree.