Charts
Sessions Line Card
Sessions Line Card: A seven day session card where the reading sits inside the plot, anchored bottom right, and a highlight dot rides the spline as you scrub.
Using Sessions Line Card
Sessions Line Card uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accentColor | color | #9BE15D | No additional limit in the metadata. |
strokeWidth | number | 2.5 | From 1 to 5; step 0.5 |
smoothing | number | 0.8 | From 0 to 1; step 0.05 |
trend | number | 8.2 | From -40 to 40; step 0.1 |
title | text | Active Sessions | Up to 40 characters |
Which frameworks are available for Sessions Line Card?
Sessions Line Card is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Sessions Line Card depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.
What accessibility details are visible in Sessions Line Card?
The React source for Sessions Line Card includes: attributes and handlers (aria-hidden, aria-label, aria-live, onKeyDown, tabIndex); explicit roles (img); key comparisons (ArrowLeft, ArrowRight, End, Escape, Home). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Sessions Line Card handle reduced motion?
Sessions Line Card reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.