-
v1.1.5 Stable
released this
2026-03-19 17:52:46 -07:00 | 76 commits to main since this releaseTabBar: stateful widget with overflow and mouse support
TabBaris now a mutable, stateful widget — consistent withRadioGroup,SelectableList, and other interactive widgets. Previously it was an immutable display-only struct.handle_key!— left/right/tab to switch tabs (requiresfocused=true)handle_mouse!— click a tab to switch, returns:changedor:nonevalue/set_value!— get/set the active tab index- Automatic overflow — when tabs exceed available width, the visible window scrolls to keep the active tab in view with
…indicators on clipped sides - Mouse hit testing — tab bounding rects are cached during render for accurate click detection
Fully backwards compatible. Existing code that constructs
TabBarinline inview()works unchanged.Closes #22. Thanks @ronisbr for the report.
Other
- New
tabbar_demoin the demos launcher - Updated
sysmondemo to use the new stateful TabBar API - Fix light-mode-dependent test failures in sixel/kitty encoder tests
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads