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. Loading indicator

Loading indicator

Use this component to notify the user that the application is doing something in relation to the action they have just taken. It keeps them informed.

Example

Coded example

In merchant role
23,882
Loading indicator
Merchant ID Reseller key Company name Transactions Sales Vol. Returns Vol. Ineligible Reseller Actions
1123222 1123222 Bedrock incorporated 4 $56.40 $0.00 $0.00 Integrity
Edit Delete
112223 112223 Bedrock incorporated 4 $56.40 $0.00 $0.00 Integrity
Edit Delete
112232 112232 Bedrock incorporated 4 $56.40 $0.00 $0.00 Integrity
Edit Delete
1112344 1112344 Bedrock incorporated 4 $56.40 $0.00 $0.00 Integrity
Edit Delete
Loading indicator

Code snippet

HTML JavaScript
									
<!--Include card-loading class on card to show loading indicator -->

<div class="card card-loading data-card mb-48">
  <div class="card-content">
    <div class="data-card-text">
      <h5>In merchant role</h5>
      <div class="card-count tertiary">23,882</div>
    </div>
    <div class="card-body">
      <div id="chart" class="chart-area"></div>
    </div>
  </div>
  <div class="card-spinner">
    <img class="loading-indicator" src="assets/spinner.png" alt="Loading indicator">
  </div>
</div>

<!--Include table-loading class alongside table-responsive class to show loading indicator -->

<div class="table-responsive table-loading">
  <table class="table table-striped">
    <thead>
      <tr>
        <th scope="col">Merchant ID</th>
        <th scope="col">Reseller key</th>
        <th scope="col">Company name</th>
        <th scope="col" class="text-center">Transactions</th>
        <th scope="col" class="text-center">Sales Vol.</th>
        <th scope="col" class="text-center">Returns Vol.</th>
        <th scope="col" class="text-center">Ineligible</th>
        <th scope="col">Reseller</th>
        <th scope="col" class="text-center">Actions</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td scope="row">1123222</td>
        <td>1123222</td>
        <td><a href="">Bedrock incorporated</a></td>
        <td class="text-center">4</td>
        <td class="text-center">$56.40</td>
        <td class="text-center">$0.00</td>
        <td class="text-center">$0.00</td>
        <td>Integrity</td>
        <td>
          <div class="dropdown">
            <a class="dropdown-toggle actions-button" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              <i class="fa-solid fa-ellipsis"></i>
            </a>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
              <a class="dropdown-item" href="#">Edit</a>
              <a class="dropdown-item danger" href="#">Delete</a>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td scope="row">112223</td>
        <td>112223</td>
        <td><a href="">Bedrock incorporated</a></td>
        <td class="text-center">4</td>
        <td class="text-center">$56.40</td>
        <td class="text-center">$0.00</td>
        <td class="text-center">$0.00</td>
        <td>Integrity</td>
        <td>
          <div class="dropdown">
            <a class="dropdown-toggle actions-button" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              <i class="fa-solid fa-ellipsis"></i>
            </a>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
              <a class="dropdown-item" href="#">Edit</a>
              <a class="dropdown-item danger" href="#">Delete</a>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td scope="row">112232</td>
        <td>112232</td>
        <td><a href="">Bedrock incorporated</a></td>
        <td class="text-center">4</td>
        <td class="text-center">$56.40</td>
        <td class="text-center">$0.00</td>
        <td class="text-center">$0.00</td>
        <td>Integrity</td>
        <td>
          <div class="dropdown">
            <a class="dropdown-toggle actions-button" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              <i class="fa-solid fa-ellipsis"></i>
            </a>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
              <a class="dropdown-item" href="#">Edit</a>
              <a class="dropdown-item danger" href="#">Delete</a>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td scope="row">1112344</td>
        <td>1112344</td7>
        <td><a href="">Bedrock incorporated</a></td>
        <td class="text-center">4</td>
        <td class="text-center">$56.40</td>
        <td class="text-center">$0.00</td>
        <td class="text-center">$0.00</td>
        <td>Integrity</td>
        <td>
          <div class="dropdown">
            <a class="dropdown-toggle actions-button" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              <i class="fa-solid fa-ellipsis"></i>
            </a>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
              <a class="dropdown-item" href="#">Edit</a>
              <a class="dropdown-item danger" href="#">Delete</a>
            </div>
          </div>
        </td>
      </tr>
    </tbody>
  </table>
  <div class="card-spinner">
    <img class="loading-indicator" src="assets/spinner.png" alt="Loading indicator">
  </div>
</div>
</div>
          
								
									
  None required
          
								

Figma prototype

Usage guide

Dos and don'ts

Include some text to provide context to what is loading.

If you are querying large amounts of data.

Make sure the loader is displayed in high resolution.

Do not overlay it above other content. It should be displayed on it's own.

Only use it when querying large amounts of data.

Don't overuse the loader on a page for micro interactions.

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