---
title: "Circular Meter"
description: "A small ring or half gauge that shows one measured value, such as used storage. It changes color when the value reaches a warning or critical level."
url: https://gelatinui.com/components/circular-meter
markdown_url: https://gelatinui.com/components/circular-meter.md
access: free
install: "npx shadcn@latest add @gelatin-ui/circular-meter"
registry_item: https://gelatinui.com/r/circular-meter.json
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Circular Meter

> A small ring or half gauge that shows one measured value, such as used storage. It changes color when the value reaches a warning or critical level.

Page: https://gelatinui.com/components/circular-meter

## When to use it

Best for: One measured value at rest in a small ring or half gauge, such as storage or a quota.

- Use `low`, `high`, and `optimum` for warning and critical levels.
- Use `segments` for a count of units.

## When not to use it

- For work that moves to an end, use a [Circular Progress](https://gelatinui.com/components/circular-progress.md).
- For the same value as a straight bar, use a [Meter](https://gelatinui.com/components/meter.md).

## Notes for agents

- `optimum` keeps the ink fill, `suboptimum` is `warning`, `critical` is `destructive`.
- It shares the ring, parts, sizes, and variants of Circular Progress.
- Name it with `CircularMeterLabel` or `aria-label`.

## Anatomy

```text
CircularMeter
├─ CircularMeterTrack (0..n)
├─ CircularMeterIndicator (0..n)
├─ CircularMeterValue (0..n)
└─ CircularMeterLabel (0..n)
```

## API reference

### CircularMeter

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "lg" \| "sm" \| "xl" \| "xs"` | "default" |  |
| `variant` | `"full" \| "half"` | "full" |  |
| `className` | `string` |  |  |
| `low` | `number` |  | The top of the low region, as on the native `<meter>`. Set it or `high` to get levels. |
| `high` | `number` |  | The bottom of the high region, as on the native `<meter>`. |
| `optimum` | `number` |  | The best value. Under `low`: low is good. Over `high`: high is good. Between: the middle. |
| `glow` | `boolean` |  | A soft halo in the fill color (`glow`, `@gelatin-ui/glow`). Default: `false`. |
| `segments` | `number` |  | Cut the ring into this many arcs that fill one by one. Unset: one solid ring. |
| `animated` | `boolean` | true | Move the arc and count the value text to each new value, as `CircularProgress` does. `false` jumps to each value. Default `true`. |

Also takes every prop of Base UI `Meter.Root`: https://base-ui.com/react/components/meter

### CircularMeterTrack

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

### CircularMeterIndicator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

### CircularMeterValue

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Meter.Value`: https://base-ui.com/react/components/meter

### CircularMeterLabel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| CircularMeter | `circular-meter` |  |  |  |
| CircularMeterTrack | `circular-meter-track` |  |  |  |
| CircularMeterIndicator | `circular-meter-indicator` | `data-level` |  | `status-colors` |
| CircularMeterValue | `circular-meter-value` |  |  |  |
| CircularMeterLabel | `circular-meter-label` |  |  |  |

## Usage

Set the value and put the parts inside.

```tsx title="storage-meter.tsx"
import {
  CircularMeter,
  CircularMeterIndicator,
  CircularMeterLabel,
  CircularMeterTrack,
  CircularMeterValue,
} from "@/components/ui/circular-meter";

export function StorageMeter() {
  return (
    <CircularMeter value={72} high={90} size="lg">
      <CircularMeterTrack>
        <CircularMeterIndicator />
        <CircularMeterValue />
      </CircularMeterTrack>
      <CircularMeterLabel>Storage used</CircularMeterLabel>
    </CircularMeter>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/circular-meter
```

It adds 18 registry items: 14 files, 3878 lines, and the npm packages `@base-ui/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Circular Progress](https://gelatinui.com/components/circular-progress.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Circular Progress](https://gelatinui.com/components/circular-progress.md)
- [Meter](https://gelatinui.com/components/meter.md)

## Accessibility

It is the Base UI Meter, so it has the meter role and its value.

A level changes the color and the value stays in text.

## Motion

| Part | Motion |
| --- | --- |
| Value | chartUpdate · the arc springs to each new value and the value text counts with it; `animated={false}` jumps |
