Now In Code
Get access

Draggable Tick Arc Score Gauge

Dragging around the half circle sets a score from 300 to 850. Lit ticks shade from red through amber to green, the score follows the cursor on a spring, ticks near the knob swell like a lens, and a pill names the band.

Inspired by a design by @cabralorenzo on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "draggable-tick-arc-score-gauge" to this project.

The full source is attached at the end of this prompt. Put the files under components/draggable-tick-arc-score-gauge/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Sign in to attach the source files ===

Details

Platforms
iOS, Android, Web
Requires
Expo SDK 54+
Access
Free
Updated
21 Nov 2026
License
Unlimited commercial projects
Original design
@cabralorenzo on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A score card with a title at top left, a rating pill at top right and a half-circle of fifty-one ticks below. A large number sits in the middle with the maximum shown beneath it. Dragging around the arc pulls the number towards your finger on a spring, the ticks up to the knob light up, and the ticks around the knob bulge outward in a bell-shaped lens, more strongly while the card is held. The knob snaps to the last lit tick and slides there. The pill changes between rating bands, with the old and new labels cross-fading through a blur. Light and dark cards are shown side by side, with a colour and a mono tint switch.

How it's built

A shared JavaScript core holds the spring state, the tick geometry and the band table, and both the web preview and the React Native component read it. Each tick is an SVG line drawn with react-native-svg, and the bulge length is a Gaussian function of the distance between a tick and the knob, scaled by how hard the card is held. Dragging uses the built-in PanResponder to convert pointer angle into a value from zero to one. Time runs on a requestAnimationFrame loop that stops once the spring settles. No Reanimated and no shader are involved.

Good for

  • A credit, health or readiness score display that the user can explore
  • A rotary or arc slider for picking a value within a bounded range
  • Dashboard cards that need a numeric readout with a state label

Dependencies

react-native-svgreact-native

Tags

Data and AnalyticsBlur TransitionCardChartChipDark ModeData FillDragFintech and WalletGradientLight ModeMinimalNumber RollNumeric DisplayPress FeedbackSliderSpring Physics

Related