react-bootstrap-sidebar-menu icon indicating copy to clipboard operation
react-bootstrap-sidebar-menu copied to clipboard

When collapsing, show something else?

Open wz2b opened this issue 3 years ago • 0 comments

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' ?

wz2b avatar Oct 20 '22 22:10 wz2b