
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-material-tabs
Advanced tools
Tab component based on material design, used to show content one at a time, it can also be used as a browser between pages.
yarn add vue-material-tabs // npm install --save vue-material-tabs
import Vue from "vue";
import VueMaterialTabs from "vue-material-tabs";
Vue.use(VueMaterialTabs);
import { Tabs, TabItem } from "vue-material-tabs";
export default {
components: {
Tabs,
TabItem,
},
};
<Tabs>
<TabItem name="Foo">
<div class="first-tab">First tab</div>
</TabItem>
<TabItem name="Bar">
<div class="second-tab">Second tab</div>
</TabItem>
</Tabs>
<Tabs>
<TabItem>
<template #name>
My custom title 🍉
</template>
<div class="first-tab">
First tab
</div>
</TabItem>
</Tabs>
<Tabs theme="cyan">....</Tabs>
You can create your own custom themes, with theme
prop.
<Tabs :theme="theme" >
....
</Tabs>
....
<script>
export default {
data: () => ({
theme: {
nav: "#4A148C",
navItem: "#BDBDBD",
navActiveItem: "#fff",
slider: "#CE93D8",
arrow: "#f3f3f3",
},
}),
};
</script>
Name | type | Default | description |
---|---|---|---|
value | String | undefined | The designated model value for the component. |
theme | String - Object | 'default' | Apply an available or customized theme. |
vertical | Boolean | false | Uses a vertical transition when changing windows. |
ripple | Boolean | true | Ripple tab nav effect. |
slideDuration | String - Number | 200 | Set slide duration in ms . |
slideVertical | Boolean | false | Vertical slide animation. |
slide | Boolean - Object | false | Enable/disable slide or set object with props. |
navAuto | Boolean | false | Organize tab nav items auto |
navSlider | Boolean | true | Nav bar slider. |
noTouch | Boolean | false | Swippe tab by touch. |
Name | Description | Props |
---|---|---|
nav | Slot to replace the nav menu. | { navItems: Array, active: String } |
Name | Description |
---|---|
input | Emitted when tab is changed. |
Name | type | Default | description |
---|---|---|---|
name | String | 'Tab Item' | Tab item title |
disabled | Boolean | false | Removes the ability to click or target the component. |
Name | Description |
---|---|
name | Custom tab nav name |
FAQs
Vue.js tabs component based in material design
The npm package vue-material-tabs receives a total of 715 weekly downloads. As such, vue-material-tabs popularity was classified as not popular.
We found that vue-material-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.