Context meter preview
Inspect supplied token usage, response reserve and remaining context capacity.
pro · Data · composite
When to use
- Use it when a page needs inspect supplied token usage, response reserve and remaining context capacity.
- Choose it when the data structure, labels, and state are supplied by the application and must remain consumer controlled.
Alternatives
- Choose data-table instead when sortable column controls, native row selection and a scrollable table is the actual interface need, rather than context meter.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/context-meterImport components/ui/tidal.css, components/ui/context-meter.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/context-meter.css";
import{TidalContextMeter}from"./components/ui/context-meter";
export default()=><div className="tidal-scope"><TidalContextMeter capacity={1} used={1}/></div>;API and props
TidalContextMeter.capacity (required)numberRequired capacity value accepted by this exported component.
TidalContextMeter.used (required)number | nullRequired used value accepted by this exported component.
TidalContextMeter.breakdownReadonlyArray<TidalContextPart> | undefinedOptional breakdown value accepted by this exported component.
TidalContextMeter.descriptionReactNodeOptional description value accepted by this exported component.
TidalContextMeter.formatTokens((tokens: number) => string) | undefinedOptional format tokens value accepted by this exported component.
TidalContextMeter.headingLevel"h2" | "h3" | "h4" | "h5" | "h6" | undefinedOptional heading level value accepted by this exported component.
TidalContextMeter.labelsPartial<{ used: string; limit: string; reserve: string; remaining: string; unknown: string; unavailable: string; invalid: string; breakdown: string; unattributed: string; available: string; nearLimit: string; overLimit: string; exceeded: (tokens: string) => string; measurement: (used: string, capacity: string) => string; }> | undefinedOptional labels value accepted by this exported component.
TidalContextMeter.meterRefRef<HTMLMeterElement> | undefinedOptional meter ref value accepted by this exported component.
TidalContextMeter.reservednumber | undefinedOptional reserved value accepted by this exported component.
TidalContextMeter.titleReactNodeOptional title value accepted by this exported component.
TidalContextMeter.warningRationumber | undefinedOptional warning ratio value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Supply truthful data and labels; the component does not fetch, aggregate, or persist records.