Skip to content
Xshna.cssv1.0.0-beta.2
PlaygroundUtilities
DOCUMENTATION / COMPONENTS
Components / Component reference

Data tables

Responsive striped tables, sticky headings and semantic headers.

V1 BETA / DOCUMENTEDLive variants · API · Accessibility · Responsive guidance

Overview

Wrap xsh-table in xsh-table-responsive for overflow. Add xsh-table-striped, xsh-table-hover or xsh-table-sticky for variants.

Live example

Interactive · Real framework
ProjectOwnerStatus
AuroraAlexActive
OrionTaylorDraft

Example markup

<div class="xsh-table-responsive"><table class="xsh-table xsh-table-striped xsh-table-hover"><thead><tr><th scope="col">Project</th><th scope="col">Owner</th><th scope="col">Status</th></tr></thead><tbody><tr><td>Aurora</td><td>Alex</td><td><span class="xsh-badge">Active</span></td></tr><tr><td>Orion</td><td>Taylor</td><td><span class="xsh-badge">Draft</span></td></tr></tbody></table></div>

Production guidance

Dense data tables may need mobile column prioritization. Always use table headings and scope.

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.

EXACT NAMES FROM THE SHIPPED STYLESHEETS

Complete selector inventory

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.

ClassPurposeDelivery
.xsh-tableCore componentCSS-only
.xsh-table-compactComposable modifier / structure classCSS-only
.xsh-table-hoverComposable modifier / structure classCSS-only
.xsh-table-responsiveComposable modifier / structure classCSS-only
.xsh-table-stickyComposable modifier / structure classCSS-only
.xsh-table-stripedComposable modifier / structure classCSS-only
.xsh-table-wrapComposable modifier / structure classCSS-only
ENGINEERING AND INTEGRATION

Implementation details

Semantic structure

A semantic table preserves relationships between column headers and cells.

Compose existing xsh- classes on the appropriate HTML element. Keep content order meaningful when CSS is disabled.

Interactive behavior

For wide tables provide scrolling instead of clipping data.

Load xshna.min.js only if the documented interaction needs it. Your application remains responsible for data, persistence and business rules.

Responsive and localization

Sortable columns need descriptive button labels and current sort direction.

Test 320px-wide viewports, container-constrained instances, keyboard zoom, longer translations and right-to-left text where relevant.

Theme and customization

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.

ACCEPTANCE CHECKLIST

What to verify before shipping

  • Confirm every documented class used by the feature exists in the release CSS.
  • Navigate controls using Tab, Shift+Tab, Enter, Space and Escape where appropriate.
  • Test with reduced motion, high contrast, 200% text zoom and a narrow mobile viewport.
  • Verify disabled, loading, empty, error and long-content states where relevant.
  • Check actual application behavior independently of the preview: these examples use illustrative data.