You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collapsible sidebar: keyboard shortcut, tooltips when collapsed, mobile behaviour #18
The collapsible-sidebar from #15 collapses to an icon rail, but a few things people expect from an app sidebar are missing:
There's no keyboard shortcut to toggle it.
When collapsed, item names only show as a native title, not a styled tooltip.
On small screens the rail still takes horizontal space; there's no off-canvas mode.
Proposed solution
Optional shortcut prop on CollapsibleSidebarProvider (default mod+b) that calls setCollapsed.
Show a tooltip with the item label when collapsed, using the shadcn tooltip primitive (becomes a registryDependency).
Below a breakpoint, render the sidebar as a sheet that slides in with tk-slide and keep the share morph for the active pill.
Optional groups/section headings whose labels fade like item labels.
Alternatives considered
Pointing people to the shadcn sidebar block. It handles mobile, but it doesn't animate collapsing with View Transitions or compose with the tk-* classes.
Hi! I'd like to take this once #15 lands. I have a local implementation on top of #15's branch: a shortcut prop (default mod+b, false to disable) that ignores fields, extra modifiers and key repeat; shadcn tooltip on collapsed items; a modal sheet below a mobileBreakpoint (768 by default) that slides in with tk-slide, traps focus, closes on Escape or an outside click and returns focus; and CollapsibleSidebarGroup with fading labels. It has Playwright coverage on the e2e setup from #19. Happy to adjust the API before opening a PR.
Activity
adityayaduvanshi commentedon Nov 15, 2026
Hi! I'd like to take this once #15 lands. I have a local implementation on top of #15's branch: a
shortcutprop (defaultmod+b,falseto disable) that ignores fields, extra modifiers and key repeat; shadcntooltipon collapsed items; a modal sheet below amobileBreakpoint(768 by default) that slides in withtk-slide, traps focus, closes on Escape or an outside click and returns focus; andCollapsibleSidebarGroupwith fading labels. It has Playwright coverage on the e2e setup from #19. Happy to adjust the API before opening a PR.AbdullahMukadam commentedon Nov 16, 2026
Okay, Will try to merge the 15 tomorrow is it feels correct