Chankya
  • Introduction
  • Getting Started
  • Start Building
  • Layouts
  • Seed Project
  • Style Customisation
  • Third Party Modules
  • UI Elements
    • Buttons
    • Progress Bar
    • Tabs
    • Accordions
    • Pagination
    • Tooltip
    • Cards
    • Social Icons
    • Typography
    • Drop down
    • Alerts
    • Carousel
    • Date picker
    • Slider
  • Components
    • List
    • Grid
  • Contact Us
    • Hire Us
  • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. UI Elements

Tabs

PreviousProgress BarNextAccordions

Last updated 6 years ago

Was this helpful?

Takes the basic nav from above and adds the .nav-tabs class to generate a tabbed interface. Use them to create tab able regions with our .

<ul class="nav nav-tabs mb-4" role="tablist">
    <li class="nav-item">
        <a class="nav-link active" data-toggle="tab" href="#tab-1" role="tab" aria-controls="active" aria-expanded="true">Active</a>
    </li>
    <li class="nav-item">
        <a class="nav-link" data-toggle="tab" href="#tab-2" role="tab" aria-controls="inactive">Inactive</a>
    </li>
    <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
        Dropdown
        </a>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="#tab-3" role="tab" data-toggle="tab" aria-controls="dropdown1">Dropdown tab</a>
            <a class="dropdown-item" href="#tab-4" role="tab" data-toggle="tab" aria-controls="dropdown2">Another tab</a>
        </div>
    </li>
</ul>
<div class="tab-content">
    <div role="tabpanel" class="tab-pane fade show active" id="tab-1">
        <p> Basic tabs example using <code>.nav-tabs</code> class. Also requires base <code>.nav</code> class. </p>
    </div>
    <div class="tab-pane fade" id="tab-2" role="tabpanel">
        <p>This style Should Apply same for all the possible variations of this sections.</p>
    </div>
    <div class="tab-pane fade" id="tab-3" role="tabpanel">
        <p> Basic tabs example using <code>.nav-tabs</code> class. Also requires base <code>.nav</code> class.</p>
    </div>
    <div class="tab-pane fade" id="tab-4" role="tabpanel">
        <p>This style Should Apply same for all the possible variations of this sections.</p>
    </div>
</div>
tab JavaScript plugin