Vue Bootstrap Panels

Vue Panels - Bootstrap 4 & Material Design

Note: This documentation is for an older version of Bootstrap (v.4). A newer version is available for Bootstrap 5. We recommend migrating to the latest version of our product - Material Design for Bootstrap 5.
Go to docs v.5

Vue Bootstrap's panels provide a flexible and extensible content container with multiple variants. These options include, but are in no way limited to headers and footers, a wide variety of content, contextual background colors, and powerful display options. Panels are similar to cards, but they don't include media.


Basic example

Panels are built with as little markup and styles as possible, but still manage to deliver a ton of control and customization. Built with flexbox, they offer easy alignment and mix well with other Bootstrap components. They have no margin by default, so use spacing utilities as needed.

Below is an example of a basic panel with mixed content and a fixed width. Panels have no fixed width to start, so they’ll naturally fill the full width of its parent element. This is easily customized with our various sizing options.

To have the below examples work, make sure you import and register components correctly within the <script> tags.

Panel title

Some quick example text to build on the card title and make up the bulk of the card's content.

        
            
        <template>
          <mdb-card class="card-body" style="width: 22rem; margin-top: 1rem;">
            <mdb-card-title>Panel Title</mdb-card-title>
            <mdb-card-text>Some quick example text to build on the panel title and make up the bulk of the panel's content.</mdb-card-text>
            <div class="flex-row">
              <a>Card link</a>
              <a style="margin-left: 1.25rem">Another link</a>
            </div>
          </mdb-card>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardTitle, mdbCardText } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardTitle,
              mdbCardText              
            }
          }
        </script>
    
        
    

Content types

Panels support a wide variety of content, including text, list groups, links, and more. Below are examples of what’s supported.

Body

The building block of a panel is the CardBody component. Use it whenever you need a padded section within a panel.

This is some text within a panel body.
        
            
          <template>
            <mdb-card>
              <mdb-card-body>
                This is some text within a panel body.
              </mdb-card-body>
            </mdb-card>
          </template>
        
        
    
        
            
          <script>
            import { mdbCard, mdbCardBody } from 'mdbvue';
            export default {
              name: 'Panels',
              components: {
                mdbCard,
                mdbCardBody             
              }
            }
          </script>
      
        
    

Titles, text and links

Panel titles are created by using CardTitle component, while their size can be adjusted by using a tag attribute with appropriate <h*> value. Links are added and placed next to each other by adding .card-link to a <a> tag.

Subtitles are used by adding a sub attribute to CardTitle together with, for example, tag="h5". All of them get aligned nicely within the CardBody.

Panel title

Panel subtitle

Some quick example text to build on the panel title and make up the bulk of the panel's content.

Panel link Another link
        
            
          <template>
            <mdb-card style="width: 18rem;">
              <mdb-card-body>
                <mdb-card-title>Panel title</mdb-card-title>
                <mdb-card-title tag="h6" sub class="mb-2 text-muted">Panel title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the panel title and make up the bulk of the panel's content.
                </mdb-card-text>
                <a href="#" class="card-link">Panel link</a>
                <a href="#" class="card-link">Another link</a>
              </mdb-card-body>
            </mdb-card>
          </template>
        
        
    
        
            
          <script>
            import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText } from 'mdbvue';
            export default {
              name: 'Panels',
              components: {
                mdbCard,
                mdbCardBody,
                mdbCardTitle,
                mdbCardText          
              }
            }
          </script>
        
        
    

List groups

Create lists of content in a panel with a flush list group.

  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros
        
            
        <template>
          <mdb-card style="width: 18rem;">
            <mdb-list-group>
              <mdb-list-group-item>Cras justo odio</mdb-list-group-item>
              <mdb-list-group-item>Dapibus ac facilisis in</mdb-list-group-item>
              <mdb-list-group-item>Vestibulum at eros</mdb-list-group-item>
            </mdb-list-group>
          </mdb-card>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbListGroup, mdbListGroupItem } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbListGroup,
              mdbListGroupItem             
            }
          }
        </script>
    
        
    


Sizing

Panels assume no specific width to start, so they’ll be 100% wide unless otherwise stated. You can change this as needed with custom CSS, grid classes, grid Sass mixins, or utilities.

Using grid markup

Using the grid, wrap cards in columns and rows as needed.

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
        
            
          <template>
            <div>
              <mdb-row class="mb-4">
                <mdb-col sm="6">
                  <mdb-card>
                    <mdb-card-body>
                      <mdb-card-title>Special title treatment</mdb-card-title>
                      <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                      <mdb-btn color="primary">go somewhere</mdb-btn>
                    </mdb-card-body>
                  </mdb-card>
                </mdb-col>
              
                <mdb-col sm="6">
                  <mdb-card>
                    <mdb-card-body>
                      <mdb-card-title>Special title treatment</mdb-card-title>
                      <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                      <mdb-btn color="primary">go somewhere</mdb-btn>
                    </mdb-card-body>
                  </mdb-card>
                </mdb-col>
              </mdb-row>
            </div>
          </template>
        
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbBtn, mdbRow, mdbCol } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCol,
              mdbRow,
              mdbCardTitle,
              mdbCardText,
              mdbBtn           
            }
          }
        </script>
      
        
    

Using utilities

Use our handful of available sizing utilities to quickly set a panel's width.

Card title

With supporting text below as a natural lead-in to additional content.

Button

Card title

With supporting text below as a natural lead-in to additional content.

Button
        
            
          <template>
            <div>
              <mdb-card class="w-75 mb-4">
                <mdb-card-body>
                  <mdb-card-title>Special title treatment</mdb-card-title>
                  <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                  <mdb-btn color="primary">go somewhere</mdb-btn>
                </mdb-card-body>
              </mdb-card>
              
              <mdb-card class="w-50">
                <mdb-card-body>
                  <mdb-card-title>Special title treatment</mdb-card-title>
                  <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                  <mdb-btn color="primary">go somewhere</mdb-btn>
                </mdb-card-body>
              </mdb-card>
            </div>
          </template>
        
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbBtn } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardTitle,
              mdbCardText,
              mdbBtn           
            }
          }
        </script>
      
        
    

Using custom CSS

Use custom CSS in your stylesheets or as inline styles to set a width.

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
        
            
          <template>
            <mdb-card style="width: 20rem;">
              <mdb-card-body>
                <mdb-card-title>Special title treatment</mdb-card-title>
                <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-btn color="primary">go somewhere</mdb-btn>
              </mdb-card-body>
            </mdb-card>
          </template>
        
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbBtn } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardTitle,
              mdbCardText,
              mdbBtn           
            }
          }
        </script>
      
        
    

Text Alignment

You can quickly change the text alignment of any panel—in its entirety or specific parts—with our text align classes.

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
        
            
        <template>
          <div>
            <mdb-card style="width: 18rem;">
              <mdb-card-body>
                <mdb-card-title>Special title treatment</mdb-card-title>
                <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-btn color="primary">go somewhere</mdb-btn>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card class="text-center" style="width: 18rem; margin-top: 1rem;">
              <mdb-card-body>
                <mdb-card-title>Special title treatment</mdb-card-title>
                <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-btn color="primary">go somewhere</mdb-btn>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card class="text-right" style="width: 18rem; margin-top: 1rem;">
              <mdb-card-body>
                <mdb-card-title>Special title treatment</mdb-card-title>
                <mdb-card-text>With supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-btn color="primary">go somewhere</mdb-btn>
              </mdb-card-body>
            </mdb-card>
          </div>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbBtn } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardTitle,
              mdbCardText,
              mdbBtn           
            }
          }
        </script>
    
        
    


Styles

Cards include various options for customizing their backgrounds, borders, and color.

Background and color

Use the color prop together with text and background color utilities to change the appearance of a panel. Including it automatically turns the text color to white, but this behavior is easy to overwrite with the textColor taking in the same values as color.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

        
            
          <template>
            <div>
              <mdb-row>
                <mdb-col md="6" class="mb-4">
              
                  <mdb-card color="indigo" class="text-center">
                    <mdb-card-body>
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
                    </mdb-card-body>
                  </mdb-card>
              
                  <br />
              
                  <mdb-card color="pink lighten-2" class="text-center">
                    <mdb-card-body>
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
                    </mdb-card-body>
                  </mdb-card>
              
                  <br />
              
                  <mdb-card color="info-color" class="text-center">
                    <mdb-card-body>
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
                    </mdb-card-body>
                  </mdb-card>
              
                </mdb-col>
                <mdb-col md="6">
              
                  <mdb-card color="red lighten-1" class="text-center">
                    <mdb-card-body>
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
                    </mdb-card-body>
                  </mdb-card>
              
                  <br />
              
                  <mdb-card color="success-color" class="text-center">
                    <mdb-card-body>
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
                    </mdb-card-body>
                  </mdb-card>
              
                  <br />
              
                  <mdb-card color="mdb-color lighten-2" class="text-center">
                    <mdb-card-body>
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
                    </mdb-card-body>
                  </mdb-card>
              
                </mdb-col>
              </mdb-row>
            </div>
          </template>
        
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCol, mdbRow } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCol,
              mdbRow          
            }
          }
        </script>
      
        
    

Conveying meaning to assistive technologies

Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .sr-only class.

Border

Use border prop to change the border-color CSS property of a panel. Note that you can put .text-{color} classes on the parent CardBody element or a subset of the panel’s contents as shown below.

Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.

        
            
        <template>
          <div>
            <mdb-card border="primary" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-primary">
                <mdb-card-title tag="h5">Primary card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="secondary" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-secondary">
                <mdb-card-title tag="h5">Secondary card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="success" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-success">
                <mdb-card-title tag="h5">Success card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="danger" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-danger">
                <mdb-card-title tag="h5">Danger card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="warning" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-warning">
                <mdb-card-title tag="h5">Warning card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="info" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-info">
                <mdb-card-title tag="h5">Info card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="light" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body>
                <mdb-card-title tag="h5">Light card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            
            <mdb-card border="dark" class="mb-3" style="max-width: 18rem;">
              <mdb-card-header>Header</mdb-card-header>
              <mdb-card-body class="text-dark">
                <mdb-card-title tag="h5">Dark card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
          </div>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardHeader } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardHeader,
              mdbCardTitle,
              mdbCardText
            }
          }
        </script>
    
        
    

Mixin utilities

You can also change the borders on the panel header and footer as needed, and even remove their background-color with the transparent prop.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

        
            
          <template>
            <mdb-card border="success" style="max-width: 18rem;">
              <mdb-card-header transparent border="success">Header</mdb-card-header>
              <mdb-card-body class="text-success">
                <mdb-card-title tag="h5">Success card title</mdb-card-title>
                <mdb-card-text>Some quick example text to build on the card title and make up the bulk of the card's content.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer transparent border="success">Footer</mdb-card-footer>
            </mdb-card>
          </template>
        
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardFooter, mdbCardHeader } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardHeader,
              mdbCardTitle,
              mdbCardText,
              mdbCardFooter           
            }
          }
        </script>
      
        
    

Layout

In addition to styling the content within panels, Bootstrap includes a few options for laying out series of panels. For the time being, these layout options are not yet responsive.

Groups

Use CardGroup to render cards as a single, attached element with equal width and height columns. Card groups use display: flex; to achieve their uniform sizing.

Panel title

This is a wider panel with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Panel title

This panel has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Panel title

This is a wider panel with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

Last updated 3 mins ago

        
            
        <template>
          <mdb-card-group>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  content is a little bit longer.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This panel has supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  panel has even longer content than the first to show that equal height action.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
          </mdb-card-group>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardGroup } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardGroup,
              mdbCardTitle,
              mdbCardText
            }
          }
        </script>
    
        
    

When using card groups with footers, their content will automatically line up.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Card title

This card has supporting text below as a natural lead-in to additional content.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

        
            
        <template>
          <mdb-card-group>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  content is a little bit longer.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer small muted>Last updated 3 mins ago</mdb-card-footer>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This panel has supporting text below as a natural lead-in to additional content.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer small muted>Last updated 3 mins ago</mdb-card-footer>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  panel has even longer content than the first to show that equal height action.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer small muted>Last updated 3 mins ago</mdb-card-footer>
            </mdb-card>
          </mdb-card-group>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardGroup, mdbCardFooter } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardGroup,
              mdbCardTitle,
              mdbCardText,
              mdbcardFooter
            }
          }
        </script>
    
        
    

Decks

Need a set of equal width and height panel that aren’t attached to one another? Use decks.

Panel title

This is a longer panel with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Panel title

This panel has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Panel title

This is a wider panel with supporting text below as a natural lead-in to additional content. This panel has even longer content than the first to show that equal height action.

Last updated 3 mins ago

        
            
        <template>
          <mdb-card-group deck>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  content is a little bit longer.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This panel has supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  panel has even longer content than the first to show that equal height action.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
          </mdb-card-group>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardGroup } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardGroup,
              mdbCardTitle,
              mdbCardText
            }
          }
        </script>
    
        
    

Just like before, card footers in decks will automatically line up.

Panel title

This is a wider panel with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Panel title

This panel has supporting text below as a natural lead-in to additional content.

Panel title

This is a wider panel with supporting text below as a natural lead-in to additional content. This panel has even longer content than the first to show that equal height action.

        
            
        <template>
          <mdb-card-group deck>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  content is a little bit longer.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer small muted>Last updated 3 mins ago</mdb-card-footer>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This panel has supporting text below as a natural lead-in to additional content.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer small muted>Last updated 3 mins ago</mdb-card-footer>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  panel has even longer content than the first to show that equal height action.</mdb-card-text>
              </mdb-card-body>
              <mdb-card-footer small muted>Last updated 3 mins ago</mdb-card-footer>
            </mdb-card>
          </mdb-card-group>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardGroup, mdbCardFooter } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardGroup,
              mdbCardTitle,
              mdbCardText,
              mdbcardFooter
            }
          }
        </script>
    
        
    

Columns

Panels can be organized into Masonry-like columns with just CSS by using the column prop on CardGroup. Panels are built with CSS column properties instead of flexbox for easier alignment. Panels are ordered from top to bottom and left to right.

Panel title that wraps to a new line

This is a longer panel with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
Panel title

This panel has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.

Someone famous in Source Title
Panel title

This panel has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
Panel title

This is a wider panel with supporting text below as a natural lead-in to additional content. This panel has even longer content than the first to show that equal height action.

Last updated 3 mins ago

        
            
        <template>
          <mdb-card-group column>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title that wraps to a new line</mdb-card-title>
                <mdb-card-text>This is a longer panel with supporting text below as a natural lead-in to additional content. This
                  content is a little bit longer.</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
            <mdb-card class="p-3">
              <blockquote class="blockquote mb-0 card-body">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer class="blockquote-footer">
                  <small class="text-muted">
                    Someone famous in <cite title="Source Title">Source Title</cite>
                  </small>
                </footer>
              </blockquote>
            </mdb-card>
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This panel has supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
          
            <mdb-card color="primary-color" text="white" class="text-center p-3">
              <blockquote class="blockquote mb-0">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.</p>
                <footer class="blockquote-footer">
                  <small class="text-muted">
                    Someone famous in <cite title="Source Title">Source Title</cite>
                  </small>
                </footer>
              </blockquote>
            </mdb-card>
          
            <mdb-card class="text-center">
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This panel has supporting text below as a natural lead-in to additional content.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
          
            <mdb-card class="text-right p-3">
              <blockquote class="blockquote mb-0 card-body">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                <footer class="blockquote-footer">
                  <small class="text-muted">
                    Someone famous in <cite title="Source Title">Source Title</cite>
                  </small>
                </footer>
              </blockquote>
            </mdb-card>
          
            <mdb-card>
              <mdb-card-body>
                <mdb-card-title tag="h5">Panel title</mdb-card-title>
                <mdb-card-text>This is a wider panel with supporting text below as a natural lead-in to additional content. This
                  panel has even longer content than the first to show that equal height action.</mdb-card-text>
                <mdb-card-text small muted>Last updated 3 mins ago</mdb-card-text>
              </mdb-card-body>
            </mdb-card>
          
          </mdb-card-group>
        </template>
      
        
    
        
            
        <script>
          import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText, mdbCardGroup } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbCard,
              mdbCardBody,
              mdbCardGroup,
              mdbCardTitle,
              mdbCardText
            }
          }
        </script>
    
        
    

Jumbotron

A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site.

Hello, world!

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.


It uses utility classes for typography and spacing to space content out within the larger container.

Learn more
        
            
        <template>
          <mdb-jumbotron>
            <h1 class="h1-responsive">Hello, world!</h1>
            <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention
              to featured content or information.</p>
            <hr class="my-2" />
            <p>It uses utility classes for typography and spacing to space content out within the larger
              container.
            </p>
            <mdb-btn color="primary" size="lg">Learn more</mdb-btn>
          </mdb-jumbotron>
        </template>
      
        
    
        
            
        <script>
          import { mdbJumbotron, mdbBtn } from 'mdbvue';
          export default {
            name: 'Panels',
            components: {
              mdbJumbotron,
              mdbBtn
            }
          }
        </script>
    
        
    

Vue Panels - API

In this section you will find advanced information about the Panels component. You will learn which modules are required in this component, what are the possibilities of configuring the component, and what events and methods you can use in working with it.


Import statement

        
            
      <script>
        import { mdbCard, mdbCardBody, mdbCardTitle, mdbCardText } from 'mdbvue';
      </script>
    
        
    

API Reference: Properties

Name Type Default Description Example
tag String 'div' Changes card's wrapper tag <mdb-card tag="p" />
cascade Boolean false Achieving cascading effect <mdb-card cascade />
wide Boolean false Achieving cascading wide effect <mdb-card wide />
narrow Boolean false Achieving cascading narrow effect <mdb-card narrow />
reverse Boolean false Achieving cascading reversed effect <mdb-card reverse />
dark Boolean false Changes light card into dark one <mdb-card dark />
testimonial Boolean false Changes card layout to testimonial <mdb-card testimonial />
personal Boolean false Changes card layout to personal <mdb-card personal />
news Boolean false Changes card layout to news <mdb-card news />
news Boolean false Changes card layout to news <mdb-card news />
ecommerce Boolean false Changes card layout to ecommerce <mdb-card ecommerce />
collection Boolean false Changes card layout to collection <mdb-card collection />
pricing Boolean false Changes card layout to pricing <mdb-card pricing />
color String Changes card color <mdb-card color="primary" />
textColor String Changes card textColor <mdb-card textColor="success" />
border String Changes card border <mdb-card border="warning" />