Don't Drop Focus When the Button Disappears
Snip · Oct 17, 2026
Click "Show all" on a collapsed block and the button unmounts, taking keyboard focus with it: the next Tab starts from the top of the page. `useCollapsible` moves focus to whatever replaced the button.