@springernature/global-pagination
v3.0.0
Published
A component for the controls of pagination
Downloads
15
Maintainers
Keywords
Readme
Global Pagination
A component for the controls of pagination.
Branding
To include global-pagination
component currently uses the DEFAULT
brand only.
@import '@springernature/global-pagination/scss/10-settings/default';
// Include this with your other components
@import '@springernature/global-pagination/scss/50-components/pagination';
Example
HTML
<nav>
<ul class="c-pagination">
<li class="c-pagination__item">
<span class="c-pagination__link c-pagination__link--disabled">
<svg class="c-icon c-pagination__icon" aria-hidden="true">
<use xlink:href="#icon-arrow-left"></use>
</svg>
</span>
</li>
<li class="c-pagination__item">
<span class="c-pagination__link c-pagination__link--active">1</span>
</li>
<li class="c-pagination__item">
<a href="/news?type=articles&pageSize=1&page=2" class="c-pagination__link">
2
</a>
</li>
<li class="c-pagination__item">
<a href="/news?type=articles&pageSize=1&page=3" class="c-pagination__link">
3
</a>
</li>
<li class="c-pagination__item">
<span class="c-pagination__link c-pagination__link--disabled c-pagination--ellipsis">…</span>
</li>
<li class="c-pagination__item">
<a href="/news?type=articles&pageSize=1&page=22" class="c-pagination__link">
22
</a>
</li>
<li class="c-pagination__item">
<a href="/news?type=articles&pageSize=1&page=2" rel="next" class="c-pagination__link">
<svg class="c-icon c-pagination__icon c-pagination__icon--active" aria-hidden="true">
<use xlink:href="#icon-arrow-right"></use>
</svg>
</a>
</li>
</ul>
</nav>