Payroc Design logo
  • Our brand
    Mission statement Personality Values Assets
  • Content guidelines
    Voice and tone Grammar and formatting Inclusive language Writing style guides
  • Design system
    Get started Essentials Components Patterns
Submit a design request
  1. Payroc design
  2. Design system
  3. Components
  4. Tabs

Tabs

Lets users move between sections of content.

Anatomy

Diagram of the tabs component.
  1. Label
  2. Selected State
  3. Hover State
  4. Default State

Example

Coded example

Home Profile Contact
You are viewing: Home
You are viewing: Profile
You are viewing: Contact

Code snippet

HTML JavaScript
									
<nav>
  <div class="nav nav-tabs" id="nav-tab" role="tablist">
    <a class="nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
    <a class="nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
    <a class="nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
  </div>
</nav>
<div class="tab-content mt-36" id="nav-tabContent">
  <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">You are viewing: Home</div>
  <div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">You are viewing: Profile</div>
  <div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">You are viewing: Contact</div>
</div>
          
								
									
  None required
          
								

Figma prototype

Usage guide

Dos and don'ts

If a user needs to scan through various sections quickly.

Keep titles short and meaningful.

Content should be snappy to be scanned quickly.

Don’t use tabs for navigation as it can make pages slow to load.

Don't over use as it can devalue page ranking in search engines.

Don't use to build an application a stepper might be more appropriate.

Payroc Design logo

Copyright © Payroc

    Our brand
  • Mission statement
  • Personality
  • Values
  • Assets
  • Brand Guide for Sales Partners
    Content guidelines
  • Voice and tone
  • Grammar and formatting
  • Inclusive lanugage
  • Writing style guides
    Design system
  • Get started
  • Essentials
  • Components
  • Patterns