@redrob-labs/ui v1.8.0 · Redrob Group Design System 2026

MemoryMeter

Agent harness · src/components/MemoryMeter/MemoryMeter.tsx

@deprecated Use Meter (with segments). Kept for 1.x.

How full the working memory is, and what is taking up the room.

"Room left" is a segment in the legend, not an absence. A meter that only shows what is used makes the reader do the subtraction, and running out of context is the thing they are trying to avoid.

The accessible name carries the percentage in words, so the state is available without reading the bar.

Import

import { MemoryMeter } from '@redrob-labs/ui';

Rendered

No rendering: the delivery ships no preview case for this one

Props

PropTypeNotes
total number The whole window. Segments are shares of this.
segments MemorySegment[]
label React.ReactNode
leftLabel React.ReactNode
format (v: number) => string Defaults to a percentage. Pass a formatter to show tokens or words instead.
className string

Exported types

MemorySegment