Tabs

Example

Panel 1

Installation

$ npm i -S storm-tabs

Usage

HTML

JS

Either import and initialise using a named import:

import Tabs from 'storm-tabs';
Tabs.init('.js-tabs');

Or async using storm-load.js, add the .standalone file to your project, then initialise using the global name:

Load('/content/js/async/storm-tabs.standalone.js')
.then(() => {
    StormTabs.init('.js-tabs');
});