Skip to content
Back to skills

Meter

ASecurity

Segmented column strip showing a value as filled/unfilled blocks. Useful for discrete progress or threshold indicators.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aireact

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill meter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Meter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Meter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-meter/badge)](https://www.skillsdirectory.com/skills/reaviz-meter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Meter

Segmented column strip showing a value as filled/unfilled blocks. Useful for discrete progress or threshold indicators.

## Import

```tsx
import { Meter, MeterColumn } from 'reaviz';
```

## Meter Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `value` | `number` | — | Current value (required) |
| `min` | `number` | `0` | Minimum value |
| `max` | `number` | `100` | Maximum value |
| `columns` | `number` | `10` | Number of segments |
| `gap` | `number` | `15` | Gap between segments |
| `column` | `ReactElement<MeterColumnProps> \| null` | `<MeterColumn />` | Column element |
| `className` | `string` | — | CSS class |
| `style` | `React.CSSProperties` | `{}` | Inline styles |

## MeterColumn Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `height` | `number` | `32` | Column height |
| `activeFill` | `string` | `schemes.cybertron[0]` | Filled segment color |
| `inActiveFill` | `string` | `'#414242'` | Empty segment color |
| `animated` | `boolean` | `true` | Enable animations |
| `className` | `string` | — | CSS class |

## Basic Usage

```tsx
<Meter value={75} />
```

## Custom Range and Segments

```tsx
<Meter
  value={350}
  min={0}
  max={500}
  columns={20}
  gap={8}
/>
```

## Custom Colors

```tsx
<Meter
  value={60}
  column={
    <MeterColumn
      height={24}
      activeFill="#2196F3"
      inActiveFill="#1a1a1a"
    />
  }
/>
```

## Compact Meter

```tsx
<Meter
  value={40}
  columns={5}
  gap={4}
  column={<MeterColumn height={16} />}
/>
```

## No Animation

```tsx
<Meter
  value={80}
  column={<MeterColumn animated={false} />}
/>
```

## Notes

- Renders as SVG rectangles, not HTML
- Segments fill left-to-right based on the value's position within the min/max range
- Each segment animates in with staggered delay when `animated` is true

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.