structyl

Meter

stable

A quantitative measurement within a known range.

Basic usage

Examples

Storage usage

Show disk or quota usage with thresholds for low, high, and optimum.

Storage47 GB / 100 GB

Threshold examples

Meter communicates known ranges with low, high and optimum thresholds.

Features

  • low / high / optimum thresholds.
  • role="meter".

Installation

bash
pnpm dlx structyl add meter

API Reference

Meter

A quantitative measurement display.

PropTypeDefault
valuenumber

Current value.

minnumber

Minimum value.

0
maxnumber

Maximum value.

100
lownumber

Upper bound of the low range.

highnumber

Lower bound of the high range.

optimumnumber

The optimal value.

Meter | structyl