react-bootstrap-sidebar-menu
react-bootstrap-sidebar-menu copied to clipboard
When collapsing, show something else?
This is a question, not a bug. When you set up a hide parameter like this:
<SidebarMenu
exclusiveExpand={exclusiveExpand}
collapseOnSelect={collapseOnSelect}
onSelect={onSelect}
variant={themeName}
bg={themeName}
rtl={isRtl}
expand="lg"
hide="md"
>
when you are at or below the 'hide' breakpoint, the sidebar menu completely disappears, which makes sense. What do you do if you want to do something more responsive, like replace it with an abbreviated sidebar (icons only)? Or is the normal thing to have a button that appears only when you are 'hidden' and the user can hit that button to temporarily unhide the sidebar even though you're on, say, 'sm' ?