Skip to content

Context Meter

One thin bar for how much of a capacity is used, split into segments in grey steps with the remainder faint.

$149 once · every Pro piece

Customize

Past the warning line the last stretch heats progressively, deep at the line and hot at the end, and the percentage rolls. Segments ride springs when values change; hover or focus opens a breakdown with exact numbers.

Install

npx shadcn@latest add @obsyde/context-meter

Needs your licence key · Get Pro

Usage

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

import { ContextMeter } from '@/components/obsyde/ember/context-meter/ContextMeter';

export function Example() {
  return (
    <ContextMeter />
  );
}

Files

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

  • ember/context-meter/ContextMeter.tsxcomponent
  • ember/context-meter/context-meter.cssstyles
  • ember/context-meter/ContextMeterDemo.tsxdemo
  • ember/shared/rolling-number.cssshared
  • ember/shared/RollingNumber.tsxshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/kit2-kit/kit.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
capacityCapacitynumber200000
systemSystemnumber9400
filesFilesnumber61200
historyHistorynumber72800
warnAtWarn atnumber0.85