Pagination

Use pagination to separate long sets of data so that it is easier for a user to consume information.

Examples

Use the class chi-pagination to render a pagination component.

Base

<!-- For light backgrounds -->
<nav class="chi-pagination" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat">1</a>
    <a href="#" class="chi-button -flat">2</a>
    <a href="#" class="chi-button -flat -active">3</a>
    <a href="#" class="chi-button -flat">4</a>
    <a href="#" class="chi-button -flat">5</a>
    <a href="#" class="chi-button -icon -flat" aria-label="Next">
      <div class="chi-buton__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>
<!-- For dark backgrounds -->
<nav class="chi-pagination -inverse" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -light" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -light">1</a>
    <a href="#" class="chi-button -flat -light">2</a>
    <a href="#" class="chi-button -flat -light -active">3</a>
    <a href="#" class="chi-button -flat -light">4</a>
    <a href="#" class="chi-button -flat -light">5</a>
    <a href="#" class="chi-button -icon -flat -light" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

Disabled

Apply the class -disabled to any link to render in a disabled state.

<!-- For light backgrounds -->
<nav class="chi-pagination" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -disabled" aria-label="Previous" aria-disabled="true">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -active">1</a>
    <a href="#" class="chi-button -flat">2</a>
    <a href="#" class="chi-button -flat">3</a>
    <a href="#" class="chi-button -flat">4</a>
    <a href="#" class="chi-button -flat">5</a>
    <a href="#" class="chi-button -icon -flat" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>
<!-- For dark backgrounds -->
<nav class="chi-pagination -inverse" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -light -disabled" aria-label="Previous" aria-disabled="true">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -light -active">1</a>
    <a href="#" class="chi-button -flat -light">2</a>
    <a href="#" class="chi-button -flat -light">3</a>
    <a href="#" class="chi-button -flat -light">4</a>
    <a href="#" class="chi-button -flat -light">5</a>
    <a href="#" class="chi-button -icon -flat -light" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

Additional Sizes

Pagination supports the following sizes: -sm, -md (default), -lg, and -xl.

<!-- For light backgrounds -->
<!-- sm -->
<nav class="chi-pagination" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -sm" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -sm">1</a>
    <a href="#" class="chi-button -flat -sm">2</a>
    <a href="#" class="chi-button -flat -sm -active">3</a>
    <a href="#" class="chi-button -flat -sm">4</a>
    <a href="#" class="chi-button -flat -sm">5</a>
    <a href="#" class="chi-button -icon -flat -sm" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- md -->
<nav class="chi-pagination" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat">1</a>
    <a href="#" class="chi-button -flat">2</a>
    <a href="#" class="chi-button -flat -active">3</a>
    <a href="#" class="chi-button -flat">4</a>
    <a href="#" class="chi-button -flat">5</a>
    <a href="#" class="chi-button -icon -flat" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- lg -->
<nav class="chi-pagination" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -lg" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -lg">1</a>
    <a href="#" class="chi-button -flat -lg">2</a>
    <a href="#" class="chi-button -flat -lg -active">3</a>
    <a href="#" class="chi-button -flat -lg">4</a>
    <a href="#" class="chi-button -flat -lg">5</a>
    <a href="#" class="chi-button -icon -flat -lg" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- xl -->
<nav class="chi-pagination" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -xl" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -xl">1</a>
    <a href="#" class="chi-button -flat -xl">2</a>
    <a href="#" class="chi-button -flat -xl -active">3</a>
    <a href="#" class="chi-button -flat -xl">4</a>
    <a href="#" class="chi-button -flat -xl">5</a>
    <a href="#" class="chi-button -icon -flat -xl" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- For dark backgrounds -->
<!-- sm -->
<nav class="chi-pagination -inverse" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -light -sm" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -light -sm">1</a>
    <a href="#" class="chi-button -flat -light -sm">2</a>
    <a href="#" class="chi-button -flat -light -sm -active">3</a>
    <a href="#" class="chi-button -flat -light -sm">4</a>
    <a href="#" class="chi-button -flat -light -sm">5</a>
    <a href="#" class="chi-button -icon -flat -light -sm" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- md -->
<nav class="chi-pagination -inverse" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -light" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -light">1</a>
    <a href="#" class="chi-button -flat -light">2</a>
    <a href="#" class="chi-button -flat -light -active">3</a>
    <a href="#" class="chi-button -flat -light">4</a>
    <a href="#" class="chi-button -flat -light">5</a>
    <a href="#" class="chi-button -icon -flat -light" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- lg -->
<nav class="chi-pagination -inverse" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -light -lg" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -light -lg">1</a>
    <a href="#" class="chi-button -flat -light -lg">2</a>
    <a href="#" class="chi-button -flat -light -lg -active">3</a>
    <a href="#" class="chi-button -flat -light -lg">4</a>
    <a href="#" class="chi-button -flat -light -lg">5</a>
    <a href="#" class="chi-button -icon -flat -light -lg" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

<!-- xl -->
<nav class="chi-pagination -inverse" role="navigation" aria-label="Pagination">
  <div class="chi-button-group">
    <a href="#" class="chi-button -icon -flat -light -xl" aria-label="Previous">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-left" aria-hidden="true"></i>
      </div>
    </a>
    <a href="#" class="chi-button -flat -light -xl">1</a>
    <a href="#" class="chi-button -flat -light -xl">2</a>
    <a href="#" class="chi-button -flat -light -xl -active">3</a>
    <a href="#" class="chi-button -flat -light -xl">4</a>
    <a href="#" class="chi-button -flat -light -xl">5</a>
    <a href="#" class="chi-button -icon -flat -light -xl" aria-label="Next">
      <div class="chi-button__content">
        <i class="chi-icon icon-chevron-right" aria-hidden="true"></i>
      </div>
    </a>
  </div>
</nav>

Web Component

Properties

Web component coming soon

Accessibility

Accessibility guidelines coming soon