materialize-tabs

1.0.2 • Public • Published

materialize-tabs

materialize-tabs is standalone the tabs component taken from materialize-css. It's dependent only on jQuery.

Install

$ npm install materialize-tabs

Usage

Use with browserify as,

require('materialize-tabs');
// This will attach tabs to jQuery
// You do not need to declare jQuery as a global

For direct use in a browser,

<link rel="stylesheet" type="text/css" href="/dist/jquery.materialize-tabs.min.css">
<script type="text/javascript" src="/dist/jquery.materialize-tabs.min.js"></script>

This includes jQuery as well.

If jQuery is already present, use,

<link rel="stylesheet" type="text/css" href="/dist/jquery.materialize-tabs.css">
<script type="text/javascript" src="/src/js/tabs.js"></script>

Make sure you include jQuery before including tabs.js

For calling the api, refer http://materializecss.com/tabs.html

Package Sidebar

Install

npm i materialize-tabs

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • rajbhadra