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.
Navbar, link groups, breadcrumb trail and active navigation states.
Use xsh-navbar, xsh-navbar-nav, xsh-nav-link and xsh-breadcrumb with aria-current=page for current location.
<nav class="xsh-navbar" aria-label="Example navigation"><strong class="xsh-brand">Xshna</strong><ul class="xsh-navbar-nav"><li><a href="#" class="xsh-nav-link" aria-current="page">Overview</a></li><li><a href="#" class="xsh-nav-link">Products</a></li><li><a href="#" class="xsh-nav-link">Company</a></li></ul></nav>
<nav aria-label="Breadcrumb"><ol class="xsh-breadcrumb"><li><a href="#">Home</a></li><li><a href="#">Library</a></li><li aria-current="page">Components</li></ol></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-nav | Core component | CSS-only |
.xsh-nav-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.