carbon-components
Version:
The Carbon Design System is IBM’s open-source design system for products and experiences.
22 lines (19 loc) • 857 B
HTML
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->
<div data-content-switcher class="bx--content-switcher" role="tablist" aria-label="Demo switch content">
<button class="bx--content-switcher-btn bx--content-switcher--selected"
data-target=".demo--panel--opt-1" role="tab" aria-selected="true" >
<span class=bx--content-switcher__label>First section</span>
</button>
<button class="bx--content-switcher-btn"
data-target=".demo--panel--opt-2" role="tab" >
<span class=bx--content-switcher__label>Second section</span>
</button>
<button class="bx--content-switcher-btn"
data-target=".demo--panel--opt-3" role="tab" >
<span class=bx--content-switcher__label>Third section</span>
</button>
</div>