Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-material-tabs

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-material-tabs

Vue.js tabs component based in material design

  • 0.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
746
increased by9.87%
Maintainers
1
Weekly downloads
 
Created
Source

vue-material-tabs

Vue.js tabs component based in material design ❤

Demo

🚚 Install

 yarn add vue-material-tabs  // npm install --save vue-material-tabs

🚀 Usage

Global

import Vue from "vue";
import Tabs from "vue-material-tabs";

Vue.use(Tabs);

Local

import { tabs, tab } from "vue-material-tabs";

export default {
  components: {
    tabs,
    tabItem,
  },
};

📌 Examples

<Tabs>
  <TabItem name="Foo">
    <div class="first-tab">First tab</div>
  </TabItem>
  <TabItem name="Bar">
    <div class="second-tab">Second tab</div>
  </TabItem>
</Tabs>
You can customize the name in the nav by slot #name (This removes the use of the prop name)
<Tabs>
  <TabItem>
    <template #name>
        My custom title 🍉
    </template>

    <div class="first-tab">
    First tab
    </div>
  </TabItem>
</Tabs>

Tabs

Props

NametypeDefaultdescription
darkBooleanfalseApplies the dark theme.
valueString''The designated model value for the component.
verticalBooleanfalseUses a vertical transition when changing windows.
rippleBooleantrueenalbe/disable ripple buttons effects.
slideDurationString - Number200Set time in ms slide duration.
slideVerticalBooleanfalseenable vertical slide animation.
slideBoolean - Objectfalseenable/disable slide or set object with props.
navAutoBooleanfalseSet nav auto items.
navSliderBooleantrueEnable/disable slider under nav item.

Slots

NameDescriptionProps
navSlot to replace the nav menu.{ navItems: Array, active: String }

Events

NameDescription
inputEmitted when tab is changed.
changeEmitted when tab is changed by user interaction.

TabItem

Props

NametypeDefaultdescription
nameString'Tab Item 'Sets the tab value in the nav menu.
disabledBooleanfalseRemoves the ability to click or target the component.

Slots

NameDescription
nameSlot for cutom name in nav

🔖 License

MIT

Keywords

FAQs

Package last updated on 18 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc