Cornbread UI

Tabs

ClassNameDescription
tab-container
Wrapper component for the tabs
component
tab
Tab element its self
component
tab-content
The content block the tab will show
component
    
        
<section class="tab-container pt-2">
    <label for="tab-1">Tab 1</label>
    <input
        type="radio"
        id="tab-1"
        name="tabs-1"
        class="tab"
        role="tab"
        aria-label="Tab 1"
        checked
    />
	<div role="tabpanel" class="tab-content">Tab content 1</div>

	<label for="tab-2">Tab 2</label>
	<input type="radio" id="tab-2" name="tabs-1" class="tab" role="tab" aria-label="Tab 2" />
	<div role="tabpanel" class="tab-content">Tab content 2</div>
</section>
    
Adrian Dunham

Created By Adrian Dunham