VanillaReactLight & dark1.1K views
A health dashboard widget with segmented pill tabs for Move, Heart, and Sleep data — featuring SVG activity rings, animated pulse dot, heart-rate range bar, and stacked sleep-stages visualisation.
Get the code for free
Create a free account to copy or download the full source.
Tabs component
A health dashboard widget with segmented pill tabs for Move, Heart, and Sleep data — featuring SVG activity rings, animated pulse dot, heart-rate range bar, and stacked sleep-stages visualisation.
transform: translateX for GPU-friendly motionrole="tablist", role="tab", and role="tabpanel"transform: scaleX on tab changearia-haspopup="menu") with Refresh data, Download CSV, and Copy summary actions — arrow-key roving, Escape to close, focus returned to the triggerResizeObserverprefers-reduced-motionrole="tablist" on the track with an aria-labelrole="tab", aria-selected, and aria-controlsrole="tabpanel", aria-labelledby, and tabindex="0"tabindex="0"; others are -1aria-haspopup="menu" and aria-expanded; the menu is role="menu" with role="menuitem" children, and focus returns to the trigger on closerole="progressbar" with aria-valuenow and a descriptive aria-valuetext rewritten per tab.sg-bottom is aria-live="polite" so per-tab goal and insight changes are announcedaria-hidden="true"; their values are exposed as text:focus-visible with --ring outline on all interactive elementsprefers-reduced-motion: reduce disables all animationsOpen Segmented Tabs in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the tabs is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually