Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
vue-material-tabs
Advanced tools
Vue material tabs it's a tab component based in material design, is used for show one content at a time, also can use with a navigator between of page.
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 personalized themes, passing an object with the properties through the "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 a custom theme. |
vertical | Boolean | false | Uses a vertical transition when changing windows. |
ripple | Boolean | true | Enalbe/disable ripple buttons effects. |
slideDuration | String - Number | 200 | Set time in ms slide duration. |
slideVertical | Boolean | false | Enable vertical slide animation. |
slide | Boolean - Object | false | Enable/disable slide or set object with props. |
navAuto | Boolean | false | Set nav auto items. |
navSlider | Boolean | true | Enable/disable slider under nav item. |
noTouch | Boolean | false | Enable/disable slider tabs 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 ' | Sets the tab value in the nav menu. |
disabled | Boolean | false | Removes the ability to click or target the component. |
Name | Description |
---|---|
name | Slot for cutom name in nav |
FAQs
Vue.js tabs component based in material design
The npm package vue-material-tabs receives a total of 636 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.