@pnx-mixtape/tabs

2.0.2 • Public • Published

@pnx-mixtape/tabs

Documentation and examples: Tabs

Installation

npm install @pnx-mixtape/tabs --save

How to use

CSS

  • PostCSS workflow: @import '@pnx-mixtape/tabs';
  • Native CSS: @import url('dist/tabs.css');
  • Link tag: <link href="dist/tabs.css" rel="stylesheet" type="text/css">

Vanilla JS

  • ES6 import: import Tabs from '@pnx-mixtape/tabs';
  • Script tag: <script src="dist/tabs.js" type="text/javascript"></script>

HTML

<div data-tabs class="tabs">
  <ul class="tab__list">
    <li class="tab_item"><a href="#">Link</a></li>
    <li class="tab_item"><a href="#">Link</a></li>
  </ul>
  <div class="tab__panel">
    <p>Body content.</p>
  </div>
  <div class="tab__panel">
    <p>Body content.</p>
  </div>
</div>

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @pnx-mixtape/tabs

    Weekly Downloads

    373

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    18.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • previousnext-admin
    • larowlan
    • jptaranto
    • godamage
    • rikki_iki