Check out Live Demo
Tabs are built in a way to be used anywhere, with ease. Use it the following way,
This is how you can use the basic tabs.
<tabs>
<tab title="Tab 1" active="true"> Tab 1 Content </tab>
<tab title="Tab 2" active="false"> Tab 2 Content </tab>
<tab title="Tab 3" active="false"> Tab 3 Content </tab>
</tabs>
Tabs have a closable property to allow the tabs to be closed. Minimum one tab will remain open.
<tabs :closable="true" @close-tab="closeTabHandler()">
<tab title="Tab 1" active="true"> Tab 1 Content </tab>
<tab title="Tab 2" active="false"> Tab 2 Content </tab>
<tab title="Tab 3" active="false"> Tab 3 Content </tab>
</tabs>
Tabs have a property showControls
to allow the chevrons for scrolling to be visible or not. It is true
by default.
<tabs :show-controls="false">
<tab title="Tab 1" active="true"> Tab 1 Content </tab>
<tab title="Tab 2" active="false"> Tab 2 Content </tab>
<tab title="Tab 3" active="false"> Tab 3 Content </tab>
</tabs>
The tab component has two properties, title
and active
, to provide the title display text and to provide the default state of the tab (active/inactive).
<tab title="Tab Title" active="false"> Tab Content </tab>
yarn install
yarn serve
yarn build
yarn deploy