React Bootstrap Overflow

React Overflow - Bootstrap 4 & Material Design

Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5. While we'll continue to support for the transition period, we encourage you to migrate to MDB5. We're offering a 50% discount on MDB5 PRO to help with your transition, enabling you to leverage the full potential of the latest version. You can find more information here.
get 50% discount on MDB5 PRO

React Bootstrap overflow utility helps to quickly configure how content overflows an element.


Barebones overflow functionality is provided for two values by default, and they are not responsive.

This is an example of using .overflow-auto on an element with set width and height dimensions. By design, this content will vertically scroll.
This is an example of using .overflow-hidden on an element with set width and height dimensions.
        
            
          import React from 'react'
          import { MDBContainer } from 'mdbreact';

          const OverflowPage = () => {
            return (
              <MDBContainer className="d-md-flex">
                <div className="overflow-auto" style={{ maxWidth: "260px" }}>
                  This is an example of using .overflow-auto on an element with set width and height dimensions. By
                  design, this content will vertically scroll.
                </div>
                <div className="overflow-hidden" style={{ maxWidth: "260px" }}>
                  This is an example of using .overflow-hidden on an element with set width and height dimensions.
                </div>
              </MDBContainer>
            )
          }

          export default OverflowPage;
        
        
    

Using Sass variables, you may customize the overflow utilities by changing the $overflows variable in _variables.scss.