Skip to content

towardstudio/bluegg-tabs

Repository files navigation

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.

Releases

No releases published

Packages

No packages published