Vue Bootstrap Pills
Vue Pills - Bootstrap 4 & Material Design
Vue Bootstrap pills are simple navigation components that expedite browsing through various options in the layout.
They allow you to fit a lot of information in single space.
See the following Bootstrap pills examples:
Material pills MDB Pro component
Material Design styling for Bootstrap Pills component
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.
<template>
<mdb-tabs
:active="0"
pills
color="secondary"
class="mb-5"
:links="[
{ text: 'Active' },
{ text: 'Link' },
{ text: 'Link' },
{ text: 'Help' }]"
: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.`,
`<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.</p><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione porro voluptate odit minima.</p>`,
`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: 'Pills',
components: {
mdbTabs
}
}
</script>
Pills justified MDB Pro component
<template>
<mdb-tabs
:active="0"
pills
justify
color="pink"
class="mb-5"
:links="[
{ text: 'Active' },
{ text: 'Link 1' },
{ text: 'Link 2' },
{ text: 'Link 3' }]"
/>
</template>
<script>
import { mdbTabs } from 'mdbvue';
export default {
name: 'Pills',
components: {
mdbTabs
}
}
</script>
Pills - API
In this section you will find advanced information about the Pills 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
import { mdbTabs } from 'mdbvue';
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" /> |
API Reference: Methods
Name | Parameters | Description | Example |
---|---|---|---|
v-on:activeTab |
index | Returns active tab index after each tab change | <mdb-tabs @activeTab="getActiveTabIndex" /> |