Kinetik UI

Vital Arcs

.md

A daily summary widget: concentric arcs sweep from the corner with values at their tips, round a score disc.

v1.0.0Live on web@shopify/react-native-skiareact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add vital-arcs

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/vital-arcs.json

Install manually

  1. Install dependencies
    npx expo install @shopify/react-native-skia react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/vital-arcs.tsx
    View source files

Usage

import { VitalArcs } from '@/components/kinetik/vital-arcs';

<VitalArcs
  title="Today · 21 Feb"
  metrics={[
    { icon: <MoonIcon />, value: '7h 2m', label: 'Sleep time', change: { text: '12%', up: true } },
    { icon: <HeartIcon />, value: '56 bpm', label: 'Avg. heart rate' },
  ]}
  rings={[
    { value: 31, label: 'Activity' },
    { value: 84, label: 'Workouts' },
    { value: 53, label: 'Rest' },
  ]}
  score={16}
  scoreLabel="PAI"
/>;

When to use

  • A home-screen style summary: two or three figures and up to three goals with a headline score.

When not to use

  • Exact comparisons between rings: the arcs read as progress, not precise values.
  • More than three goals: use Activity Rings or a chart.

Notes

  • Ring values run 0–100. They sweep in outside first and re-sweep whenever a value changes.
  • Default arc colours are sky, green and red, outside in; pass color per ring to change them.
  • The card is 204 pt tall and shrinks the arcs on narrow widths so they stay clear of the text.

Props

VitalArcsProps

PropTypeDefaultDescription
titlerequiredstring—
metricsrequiredreadonly VitalMetric[]—Up to three rows on the left.
ringsrequiredreadonly VitalRing[]—Up to three arcs, outermost first.
scorerequirednumber—The figure in the disc at the arcs' centre.
scoreLabelrequiredstring—Word under the score, e.g. "PAI".
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
The arcs are trimmed Skia paths and the badges ride them with UI-thread timings; the score counts up for about a second. Nothing animates at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.06× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 160 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
Arcs, badges and the score appear at their values without sweeping or counting.
Screen readers
Each row reads as one line ("Sleep time: 7h 2m, up 12%"), and the arcs as one summary with the score ("16 PAI. Activity 31, Workouts 84, Rest 53").
Touch target
Nothing is interactive.

Source files

components/kinetik/vital-arcs.tsx is in the Code tab of the preview above.