Kinetik UI

Gauge Meter

.md

A dial that swings to its value on a spring while the figure counts up beneath it.

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

Installation

Kinetik CLI
npx kinetik-ui add gauge-meter

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/gauge-meter.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/gauge-meter.tsx
    View source files

Usage

import { GaugeMeter } from '@/components/kinetik/gauge-meter';

<GaugeMeter
  accessibilityLabel="Download speed"
  value={speed}
  max={1000}
  unit="Mbps"
  label="Download"
/>;

Change value and the dial swings from where it is, while the figure counts on. colors takes the arc's start and tip colours; by default it runs from sky into azure.

When to use

  • One figure within a known range, read at a glance: a speed, a score, a battery level, a budget used.
  • Live readings that change now and then, where the swing shows the direction of change.

When not to use

  • Comparing several values. Use a bar chart.
  • Values without a meaningful maximum. A dial suggests a limit.

Notes

  • sweep sets how much of the circle the arc covers, from 180° to 300°.
  • The figure counts with formatValue, so pass one that rounds the way you want while it is counting.
  • With reduced motion the dial and the figure show the value at once.

Props

GaugeMeterProps

PropTypeDefaultDescription
valuerequirednumber—
accessibilityLabelrequiredstring—What the gauge measures, read before the value, e.g. "Download speed".
minnumber0Defaults to 0.
maxnumber100Defaults to 100.
labelstring—Under the figure, e.g. "Download speed".
formatValue(value: number) => string(v) => String(Math.round(v))Formats the figure as it counts, and the two ends. Defaults to whole numbers.
unitstring—Unit after the figure, e.g. "Mbps".
sizenumber240Width of the gauge. Defaults to 240.
thicknessnumber14Width of the arc. Defaults to 14.
sweepnumber240Degrees of the arc, 180–300. Defaults to 240.
ticksbooleantrueTicks around the outside. Defaults to true.
colorsreadonly [string, string]—Arc colours from the start to the tip. Defaults to sky into azure.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Arc and ticks are built once per size; the swing trims the arc and moves the knob from one shared value. The figure re-renders only while it counts.
Measured

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

Real-device measurement pending.

Accessibility

Reduced motion
The arc and the figure show the value at once.
Screen readers
A progress bar with its minimum, maximum and formatted value.
Touch target
Not interactive.

Source files

components/kinetik/gauge-meter.tsx is in the Code tab of the preview above.