bluegg-tabs
v0.0.2
Published
Simple Tabs built with accessibility in mind. Forked from http://codepen.io/stowball/pen/xVWwWe/
Downloads
2
Readme
Bluegg-Tabs
Simple tabs
Usage
# install
npm install --save bluegg-tabs
// import - common.js
var Tabs = require ('bluegg-tabs');
// Get your Tab elements
var alltabs = document.querySelectorAll('.js-tabs');
// Init the tabs
[].forEach.call(alltabs, function(item, i) {
new Tabs(alltabs[i]);
});
Example of markup and styling required
Thanks
~~Forked~~ Stolen from Matt '@stowball' Stow's Pen Accessible Tabs.