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

Timeline and steps

Activity timelines and ordered workflow stepper patterns.

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

Overview

Use xsh-timeline for activity and xsh-steps with xsh-step for progress; indicate the active step with aria-current=step.

Live example

Interactive · Real framework
  1. Project created

    9:30 AM

  2. Design approved

    11:15 AM

  3. Ready to publish
  1. Details
  2. Review
  3. Publish

Example markup

<div class="xsh-grid xsh-md-grid-cols-2 xsh-gap-6"><ol class="xsh-timeline"><li><strong>Project created</strong><p class="xsh-muted">9:30 AM</p></li><li><strong>Design approved</strong><p class="xsh-muted">11:15 AM</p></li><li><strong>Ready to publish</strong></li></ol><ol class="xsh-steps"><li class="xsh-step" data-xsh-complete>Details</li><li class="xsh-step" aria-current="step">Review</li><li class="xsh-step">Publish</li></ol></div>

Production guidance

Use ordered lists because order carries meaning. State changes require application code.

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-timelineCore componentCSS-only
.xsh-timeline-eventComposable modifier / structure classCSS-only
.xsh-timeline-verticalComposable modifier / structure classCSS-only
ENGINEERING AND INTEGRATION

Implementation details

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.

Interactive behavior

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.

Responsive and localization

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.

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.