Vue Bootstrap Tabs

Vue Tabs - 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 tabs are components which separate content placed in the same wrapper, but in the separate pane. Only one pane can be displayed at the time.

Note: If you are looking for pills, go to the Pills documentation


Default tabs

Default styling for Bootstrap Tabs component

        
            
            <template>
              <mdb-container>
                <mdb-tabs 
                  :active="0"
                  default
                  :links="[
                    { text: 'Home' },
                    { text: 'Profile' },
                    { text: 'Contact' }]" 
                  :content="[
                    `Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.`,
                    `Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.`,
                    `Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.`]"
                />
              </mdb-container>
            </template>
          
        
    
        
            
            <script>
              import { mdbContainer, mdbCol, mdbRow, mdbIcon, mdbTabs } from 'mdbvue';
              export default {
                name: 'TabPage',
                components: {
                  mdbContainer,
                  mdbCol,
                  mdbRow,
                  mdbIcon,
                  mdbTabs
                }
              }
            </script>       
        
        
    

Material tabs MDB Pro component

Material Design styling for Bootstrap Tabs component

        
            
            <template>
              <mdb-tabs 
                :active="0"
                tabs 
                card
                class="mb-5"
                :links="[
                  { text: 'Home' },
                  { text: 'Profile' },
                  { text: 'Contact' }]" 
                :content="[
                  `Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.`,
                  `Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.`,
                  `Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.`]"
              />
            </template>
          
        
    
        
            
            <script>
              import { mdbTabs } from 'mdbvue';
              export default {
                name: 'Basic',
                components: {
                  mdbTabs
                }
              }
            </script>
        
        
    


Tabs justified MDB Pro component

        
            
        <template>
          <mdb-tabs 
            :active="0"
            tabs 
            card
            class="mb-5"
            color="indigo"
            justify
            :links="[
              { text: 'Home' },
              { text: 'Profile' },
              { text: 'Contact' }]" 
            :content="[
              `Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.`,
              `Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.`,
              `Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.`]"
          />
        </template>
      
        
    
        
            
        <script>
          import { mdbTabs } from 'mdbvue';
          export default {
            name: 'Basic',
            components: {
              mdbTabs
            }
          }
        </script>
    
        
    

Pills within tabs MDB Pro component

Profile Follow Downloads Orders & Invoices Billing Details
Panel 1
Panel 2
Panel 3

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.

Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
        
            
        <template>
          <mdb-container class="m-5">
            <mdb-tab tabs color="primary" justify>
              <mdb-tab-item icon="user" :active="pillsActive==0" @click.native.prevent="pillsActive=0">Profile</mdb-tab-item>
              <mdb-tab-item icon="heart" :active="pillsActive==1" @click.native.prevent="pillsActive=1">Follow</mdb-tab-item>
            </mdb-tab>
            <mdb-tab-content>
              <mdb-tab-pane class="fade" key="show1" v-if="pillsActive==0">
                <mdb-row>
                  <mdb-col md="3">
                    <mdb-tab pills color="primary" vertical>
                      <mdb-tab-item :active="verticalWithin==0" @click.native.prevent="verticalWithin=0">Downloads <mdb-icon icon="download" class="ml-2"/></mdb-tab-item>
                      <mdb-tab-item :active="verticalWithin==1" @click.native.prevent="verticalWithin=1">Orders & Invoices <mdb-icon icon="file" class="ml-2"/></mdb-tab-item>
                      <mdb-tab-item :active="verticalWithin==2" @click.native.prevent="verticalWithin=2">Billing Details <mdb-icon icon="address-card" class="ml-2"/></mdb-tab-item>
                    </mdb-tab>
                  </mdb-col>
                  <mdb-col md="9">
                    <mdb-tab-content vertical>
                      <mdb-tab-pane class="fade" key="pills1" v-if="verticalWithin==0"><h5 class="my-2 h5">Panel 1</h5></mdb-tab-pane>
                      <mdb-tab-pane class="fade" key="pills2" v-if="verticalWithin==1"><h5 class="my-2 h5">Panel 2</h5></mdb-tab-pane>
                      <mdb-tab-pane class="fade" key="pills3" v-if="verticalWithin==2"><h5 class="my-2 h5">Panel 3</h5></mdb-tab-pane>
                    </mdb-tab-content>
                  </mdb-col>
                </mdb-row>
              </mdb-tab-pane>
              <mdb-tab-pane class="fade" key="show2" v-if="pillsActive==1"><br/>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. <br><br>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</mdb-tab-pane>
            </mdb-tab-content>
          </mdb-container>
        </template>
      
        
    
        
            
        <script>
          import { mdbTab, mdbTabItem, mdbTabContent, mdbTabPane, mdbContainer, mdbCol, mdbRow, mdbIcon } from 'mdbvue';
          export default {
            name: 'TabPage',
            components: {
              mdbTab,
              mdbTabItem,
              mdbTabContent,
              mdbTabPane,
              mdbContainer,
              mdbCol,
              mdbRow,
              mdbIcon
            },
            data() {
              return {
                pillsActive: 0,
                verticalWithin: 0
              };
            }
          }
        </script>
      
        
    
        
            
        <!-- Styles are used for tab animation, which is open for customization and optional -->
        <style scoped>
          .slide-toggle-enter-active {
            transition: .3s ease-in;
            opacity: 1;
            max-height: 500px;
          }

          .slide-toggle-enter,
          .slide-toggle-leave-active {
            opacity: 0;
            max-height: 0;
          }

          .slide-toggle-leave {
            opacity: 1;
            max-height: 500px;
          }
        </style>
    
        
    

Classic tabs MDB Pro component

With border

        
            
        <template>
          <div class="classic-tabs">
            <mdb-tabs 
              :active="0" 
              border
              class="mb-5"
              color="cyan"
              :links="[
                { text: 'Profile' },
                { text: 'Follow' },
                { text: 'Contact' },
                { text: 'Be awesome' }]" 
              :content="[
                `Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.`,
                `Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?`,
                `At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.`,
                `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`]"
            />
          </div>
        </template>
      
        
    
        
            
        <script>
          import { mdbTabs } from 'mdbvue';
          export default {
            name: 'Basic',
            components: {
              mdbTabs
            }
          }
        </script>
    
        
    

With shadow

        
            
        <template>
          <div class="classic-tabs">
            <mdb-tabs 
              :active="0" 
              card
              class="mb-5"
              color="cyan"
              :links="[
                { text: 'Profile' },
                { text: 'Follow' },
                { text: 'Contact' },
                { text: 'Be awesome' }]" 
              :content="[
                `Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.`,
                `Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?`,
                `At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.`,
                `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`]"
            />
          </div>
        </template>
      
        
    
        
            
        <script>
          import { mdbTabs } from 'mdbvue';
          export default {
            name: 'Basic',
            components: {
              mdbTabs
            }
          }
        </script>
    
        
    

Color options:

  • cyan
  • orange
  • grey
  • pink
  • green
  • primary
        
            
        <template>
          <div class="classic-tabs">
            <mdb-tabs 
              :active="0" 
              card
              class="mb-5"
              color="orange"
              :links="[
                { text: 'Profile', icon: 'user', bigIcon: true },
                { text: 'Follow', icon: 'heart', bigIcon: true },
                { text: 'Contact', icon: 'envelope', bigIcon: true },
                { text: 'Be awesome', icon: 'star', bigIcon: true }]" 
              :content="[
                `Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.`,
                `Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?`,
                `At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.`,
                `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`]"
            />
          </div>
        </template>
      
        
    
        
            
        <script>
          import { mdbTabs } from 'mdbvue';
          export default {
            name: 'Basic',
            components: {
              mdbTabs
            }
          }
        </script>
    
        
    

Tabs with HTML content

To display your custom HTML content in tabs, place your template inside a wrapper with a reference to a named slot. For every link from links array, a slot is created - if you add additional key to the link object (slot: 'custom-name') the slot will be named according to the given value, if not, the name will be exactly the same as the link's 'text' value. You can adjust tabs tranistions with transition-duration transition-style properties.

        
            
        <template>
          <mdb-tabs 
          :active="0"
          default
          :links="[
            { text: 'Home', slot: 'custom-slot' },
            { text: 'Blog' },
            { text: 'Contact' }]"
          :transition-duration="0.5"
          transition-style="linear"
        >
          <template :slot="'custom-slot'">
            <mdb-container>
              <mdb-jumbotron class="text-center hoverable">
                <mdb-row>
                  <mdb-col md="4" offsetMd="1" class="m-3">
                    <mdb-view src="https://mdbootstrap.com/img/Photos/Others/laptop-sm.webp" alt="Sample image for first version of blog listing">
                      <a><mdb-mask waves overlay="white-slight"/></a>
                    </mdb-view>
                  </mdb-col>
                  <mdb-col md="7" class="text-md-left ml-3 mt-3">
                    <a href="#!" class="green-text">
                      <h6 class="h6 pb-1"><mdb-icon icon="desktop" class="pr-1"/> Work</h6>
                    </a>
                    <h4 class="h4 mb-4">This is title of the news</h4>
                    <p class="font-weight-normal">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque, totam
                      rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
                      dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur.</p>
                    <p class="font-weight-normal">by <a><strong>Carine Fox</strong></a>, 19/08/2016</p>
                    <mdb-btn color="success">Read more</mdb-btn>
                  </mdb-col>
                </mdb-row>
              </mdb-jumbotron>
            </mdb-container>
          </template>
          <template :slot="'Blog'">
            <mdb-container>
              <mdb-jumbotron class="text-center hoverable">
                <mdb-row>
                  <mdb-col lg="5">
                    <mdb-view class="rounded z-depth-2 mb-lg-0 mb-4" hover>
                      <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Others/img%20(27).webp" alt="Sample image" />
                      <a>
                        <mdb-mask overlay="white-slight" waves/>
                      </a>
                    </mdb-view>
                  </mdb-col>
                  <mdb-col lg="7">
                    <a class="green-text">
                      <h6 class="font-weight-bold mb-3">
                        <mdb-icon icon="utensils" class="pr-2" />Food</h6>
                    </a>
                    <h3 class="font-weight-bold mb-3 p-0">
                      <strong>Title of the news</strong>
                    </h3>
                    <p>Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat mdb-iconcere
                      possimus, omnis voluptas assumenda est, omnis dolor repellendus et aut officiis debitis.</p>
                    <p>by
                      <a>
                        <strong>Carine Fox</strong>
                      </a>, 19/08/2018</p>
                    <mdb-btn color="success" size="md" class="waves-light ">Read more</mdb-btn>
                  </mdb-col>
                </mdb-row>
              </mdb-jumbotron>
              <mdb-jumbotron class="text-center hoverable">
                <mdb-row>
                  <mdb-col lg="7">
                    <a class="pink-text">
                      <h6 class="font-weight-bold mb-3">
                        <mdb-icon icon="image" class="pr-2" />Lifestyle
                      </h6>
                    </a>
                    <h3 class="font-weight-bold mb-3 p-0">
                      <strong>Title of the news</strong>
                    </h3>
                    <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti
                      quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.</p>
                    <p>by
                      <a>
                        <strong>Carine Fox</strong>
                      </a>, 14/08/2018</p>
                    <mdb-btn color="pink" size="md" class="mb-lg-0 mb-4 waves-light">Read more</mdb-btn>
                  </mdb-col>
                  <mdb-col lg="5">
                    <mdb-view class="rounded z-depth-2 mb-lg-0 mb-4" hover>
                      <img class="img-fluid" src="https://mdbootstrap.com/img/Photos/Others/img%20(34).webp" alt="Sample image" />
                      <a>
                        <mdb-mask overlay="white-slight" waves/>
                      </a>
                    </mdb-view>
                  </mdb-col>
                </mdb-row>
              </mdb-jumbotron>
            </mdb-container>
          </template>
          <template :slot="'Contact'">
            <mdb-container>
              <mdb-jumbotron class="text-center hoverable">
                <form>
                  <p class="h4 text-center mb-4">Write to us</p>
                  <div class="grey-text">
                    <mdb-input label="Your name" icon="user" group type="text" validate error="wrong" success="right"/>
                    <mdb-input label="Your email" icon="envelope" group type="email" validate error="wrong" success="right"/>
                    <mdb-input label="Subject" icon="tag" group type="text" validate error="wrong" success="right"/>
                    <mdb-textarea :rows="2" label="Your message" icon="pencil"/>
                  </div>
                  <div class="text-center">
                    <mdb-btn outline="secondary">Send <mdb-icon far icon="paper-plane" class="ml-1"/></mdb-btn>
                  </div>
                </form> 
              </mdb-jumbotron>
            </mdb-container>
          </template>
        </mdb-tabs>
      </template>
      
        
    
        
            
        <script>
          import { mdbContainer, mdbCol, mdbRow, mdbIcon, mdbTabs, mdbJumbotron, mdbView, mdbMask, mdbBtn, mdbTextarea, mdbInput } from 'mdbvue';
          
          export default {
            name: 'TabPage',
            components: {
              mdbContainer,
              mdbCol,
              mdbRow,
              mdbIcon,
              mdbTabs,
              mdbJumbotron,
              mdbView,
              mdbMask,
              mdbBtn,
              mdbTextarea,
              mdbInput,
            }
          };
        </script>
    
        
    

Vue Tabs - API

In this section you will find advanced information about the Tabs 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 { mdbTabs } from 'mdbvue';
      </script>
    
        
    

API Reference: Properties

Name Type Default Description Example
tag String 'ul' Changes tabs's wrapper tag <mdb-tabs tag="div" />
active Number 0 Active element index <mdb-tabs :active="1" />
color String 'default' Changes tabs's color <mdb-tabs color="cyan" />
pills Boolean false Changes tabs into pills <mdb-tabs pills />
tabs Boolean false Changes tabs into nav tabs <mdb-tabs tabs />
vertical Boolean false Flex column layout <mdb-tabs vertical />
justify Boolean false Justified layout <mdb-tabs justify />
navClass String Adds new classes to already existing <mdb-tabs navClass="..." />
card Boolean false Changes tabs style into card layout <mdb-tabs card />
header Boolean false Changes tabs style into card header layout <mdb-tabs header />
links Array Nav links data <mdb-tabs :links="[{...}, {...}]" />
content Array Tab content data <mdb-tabs :content="[{...}, {...}]" />
border Boolean false Replace card shadow by border <mdb-tabs border />
zIndex Number 1 Change component z-index value <mdb-tabs zIndex="0" />
transitionDuration Number 0.3 Change transition duration (in seconds) <mdb-tabs :transition-duration="0.8" />
transitionStyle String 'ease-out' Change transition style <mdb-tabs transition-style="ease-in" />

API Reference: Methods

Name Parameters Description Example
v-on:activeTab index Returns active tab index after each tab change <mdb-tabs @activeTab="getActiveTabIndex" />