Semantic structure
Use the documented Xshna classes with semantic HTML rather than replacing native elements unnecessarily.
Compose existing xsh- classes on the appropriate HTML element. Keep content order meaningful when CSS is disabled.
Accessible page controls and current page indicators.
Use a nav landmark around xsh-pagination, xsh-page-link and aria-current=page. Real pagination data comes from your backend or client state.
<nav aria-label="Pagination"><ul class="xsh-pagination"><li><a class="xsh-page-link" href="#" aria-label="Previous page">‹</a></li><li><a class="xsh-page-link" href="#" aria-current="page">1</a></li><li><a class="xsh-page-link" href="#">2</a></li><li><a class="xsh-page-link" href="#">3</a></li><li><a class="xsh-page-link" href="#" aria-label="Next page">›</a></li></ul></nav>Customize this component through --xsh-* CSS tokens, data-xsh-* configuration attributes and documented xsh-* utilities. Use the optional JavaScript distribution only when an interactive behavior is needed.
These selectors exist in the current distribution. An entry in this table does not imply that arbitrary modifier combinations are meaningful; use the examples above for the intended composition.
| Class | Purpose | Delivery |
|---|---|---|
.xsh-page-link | Composable modifier / structure class | CSS-only |
Use the documented Xshna classes with semantic HTML rather than replacing native elements unnecessarily.
Compose existing xsh- classes on the appropriate HTML element. Keep content order meaningful when CSS is disabled.
Verify focus order, disabled behavior and descriptive labels for interactive patterns.
Load xshna.min.js only if the documented interaction needs it. Your application remains responsible for data, persistence and business rules.
Test narrow containers, long translations and user-defined text sizes.
Test 320px-wide viewports, container-constrained instances, keyboard zoom, longer translations and right-to-left text where relevant.
Use --xsh-* CSS variables for theme values and data-xsh-design / data-xsh-density on the xsh-app root.
Prefer design tokens over hard-coded overrides so components remain coherent across personalities.