UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

54 lines (51 loc) 2.45 kB
<!-- 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 class="bx--pagination" data-pagination> <div class="bx--pagination__left"> <div class="bx--select"> <select id="select-id-pagination" aria-label="select number of items per page" class="bx--select-input" data-items-per-page> <option class="bx--select-option" value="10" >10 </option> <option class="bx--select-option" value="20" >20 </option> <option class="bx--select-option" value="30" >30 </option> <option class="bx--select-option" value="40" >40 </option> <option class="bx--select-option" value="50" >50 </option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> <span class="bx--pagination__text">Items per page&nbsp;&nbsp;|&nbsp;&nbsp;</span> <span class="bx--pagination__text"> <span data-displayed-item-range>1-10</span> of <span data-total-items>40</span> items</span> </div> <div class="bx--pagination__right"> <span class="bx--pagination__text"> <span data-displayed-page-number>1</span> of <span data-total-pages>4</span> pages</span> <button class="bx--pagination__button bx--pagination__button--backward" data-page-backward aria-label="Backward button"> <svg class="bx--pagination__button-icon" width="7" height="12" viewBox="0 0 7 12"> <path fill-rule="nonzero" d="M1.45 6.002L7 11.27l-.685.726L0 6.003 6.315 0 7 .726z" /> </svg> </button> <label for="page-number-input" class="bx--visually-hidden">Page number input</label> <input id="page-number-input" type="text" class="bx--text-input" placeholder="0" value="1" data-page-number-input> <button class="bx--pagination__button bx--pagination__button--forward" data-page-forward aria-label="Forward button"> <svg class="bx--pagination__button-icon" width="7" height="12" viewBox="0 0 7 12"> <path fill-rule="nonzero" d="M5.569 5.994L0 .726.687 0l6.336 5.994-6.335 6.002L0 11.27z" /> </svg> </button> </div> </div>