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

vue-tabbing

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tabbing

Tabbing navigation utility for Vue.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

Vue Tabbing

  1. Adds a reactive $tabbing boolean property to Vue instances.
  2. Adds a tabbing class to the root html node while the user is tabbing.

This is useful for conditionally showing/hiding/styling content when the user is navigating with the tab key.

yarn add vue-tabbing

Setup

import Vue from "vue"
import VueTabbing from "vue-tabbing"

Vue.use(VueTabbing, { /* options */ })

Options

KeyTypeDefaultDescription
classNameString"tabbing"Class name to add to the root html node when the user navigating using the tab key.
Pass false to prevent a class from being set.

Usage

Conditionally style content in focus:

.tabbing :focus {
  outline: 3px solid #4fc08d;
  outline-offset: 3px;
}

Conditionally render content in a component:

<template>
  <p>{{$tabbing ? 'Nice' : 'Try'}} tabbing.</p>
</template>

Author

Matthew Wagerfield

License

MIT

Keywords

FAQs

Package last updated on 08 Feb 2019

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