Fire UI Getting Started
Introduction Download Customize
Layout
Container Grid
Components
Accordion Box Buttons Code Color and theme Form Modal Navigation bar Slideshow Spacing Table Tabs Tooltip

Tabs

Use Fire UI tabs to separate content into different panes where each pane is viewable one at a time. To use only Fire UI tab feature, copy and paste these stylesheet and script tag into your head element to load Fire UI tab CSS and JS.

<link rel="stylesheet" href="https://unpkg.com/@fire-ui/fire-ui@0.1.1/src/feature/Tabs/tab.css">
<script src="https://unpkg.com/@fire-ui/fire-ui@0.1.1/src/feature/Tabs/tab.js"></script>

Example

Hello World

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id metus ligula. Ut neque tortor, vulputate ut placerat id, molestie at risus. Curabitur velit augue, facilisis eu nisi et, placerat dapibus dui. Etiam tempor nulla mi, a porta nisl sagittis ut. Aenean ullamcorper maximus nulla, rutrum sodales ligula. Nulla urna dui, efficitur in rutrum a, viverra eu nunc. Ut non rhoncus turpis, at vulputate mauris. Suspendisse et efficitur massa, in aliquam justo.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id metus ligula. Ut neque tortor, vulputate ut placerat id, molestie at risus. Curabitur velit augue, facilisis eu nisi et, placerat dapibus dui. Etiam tempor nulla mi, a porta nisl sagittis ut. Aenean ullamcorper maximus nulla, rutrum sodales ligula. Nulla urna dui, efficitur in rutrum a, viverra eu nunc. Ut non rhoncus turpis, at vulputate mauris. Suspendisse et efficitur massa, in aliquam justo.

<div class="box">
    <div class="tab" data-tab = "exampleTab">
        <button class="tab-btn btn-dark" data-content = "helloWorld">Hello</button>
        <button class="tab-btn btn-light" data-content = "loremIpsum">Lipsum</button>
    </div>
    <div class="tab-contents" id="exampleTab">
        <div id="helloWorld" class="tab-content tab-content-active">
            <h1>Hello World</h1>
            <p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id metus ligula. 
                Ut neque tortor, vulputate ut placerat id, molestie at risus. Curabitur velit augue, facilisis eu nisi et, 
                placerat dapibus dui. Etiam tempor nulla mi, a porta nisl sagittis ut. Aenean ullamcorper maximus nulla, rutrum sodales ligula. 
                Nulla urna dui, efficitur in rutrum a, viverra eu nunc. Ut non rhoncus turpis, at vulputate mauris. Suspendisse et efficitur massa, in aliquam justo.
            </p>
        </div>
        <div id="loremIpsum" class="tab-content">
            <h1>Lorem ipsum</h1>
            <p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id metus ligula. 
                Ut neque tortor, vulputate ut placerat id, molestie at risus. Curabitur velit augue, facilisis eu nisi et, 
                placerat dapibus dui. Etiam tempor nulla mi, a porta nisl sagittis ut. Aenean ullamcorper maximus nulla, rutrum sodales ligula. 
                Nulla urna dui, efficitur in rutrum a, viverra eu nunc. Ut non rhoncus turpis, at vulputate mauris. Suspendisse et efficitur massa, in aliquam justo.
            </p>
        </div>
    </div>
</div>
            

Things to note: