Skip to content

Tick Ring

A donut drawn as fine radial ticks. Every slice shares one sweep of ticks with an empty slot between neighbours, and on mount the ring lights up like a gauge with a crest running ahead of the sweep.

$149 once · every Pro piece

Customize

Point at the ring and the tick under the pointer shoots out and thickens while its neighbours lift; it settles slowly, so sweeping round the ring leaves a trail. The hovered slice runs hot and the others step back; the centre rolls from the total at rest to the slice's share or value. The legend is linked both ways: hover isolates, click switches a slice off and the ticks re-deal, hold locks. Tab in and use the arrow keys to step through slices.

Install

npx shadcn@latest add @obsyde/tick-ring

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { TickRing } from '@/components/obsyde/ember/tick-ring/TickRing';

export function Example() {
  return (
    <TickRing ticks={96} legend="row" center="percent" />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/tick-ring/TickRing.tsxcomponent
  • ember/tick-ring/tick-ring.cssstyles
  • ember/tick-ring/TickRingDemo.tsxdemo
  • ember/viz-kit/viz-kit.cssshared
  • ember/viz-kit/Tooltip.tsxshared
  • ember/viz-kit/focus.tsshared
  • ember/viz-kit/patterns.tsxshared
  • ember/viz-kit/roll.tsshared
  • ember/shared/rolling-number.cssshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/viz-kit/scale.tsshared
  • ember/viz-kit/motion.tsshared
  • ember/viz-kit/chart.tsxshared
  • ember/shared/ember.cssshared
  • ember/viz-kit/touch.tsshared
  • ember/viz-kit/keyboard.tsshared
  • ember/viz-kit/size.tsshared
  • ember/viz-kit/state-messages.tsxshared
  • ember/viz-kit/stage.tsxshared
  • ember/viz-kit/stage.cssshared
  • ember/viz-kit/shape.tsshared
  • ember/viz-kit/Legend.tsxshared
  • ember/viz-kit/demo.tsxshared
  • ember/viz-kit/demo.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
slicesSlicesnumber5
ticksTicksnumber96
thicknessTick lengthnumber0.3
centerCentre'percent' | 'value''percent'
trailTick trailbooleantrue
legendLegend'row' | 'list' | 'none''row'
tooltipTooltip'panel' | 'none''none'
statusStatus'ready' | 'loading' | 'empty''ready'
seedSeednumber3