Meter

Feedback · Guide 41 of 46

Open the live Meter demo →

Purpose

Static measurement inside a known range.

Import

<script lang="ts">
	import { Meter } from 'bits-ui';
</script>

The registry names Meter as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.

Usage checklist

  • Expose the state in text or semantics instead of color alone.
  • Define loading, fallback, indeterminate, and failure behavior where relevant.
  • Test slow updates, missing content, and reduced-motion preferences.

Secondary reference

After using the local example, consult the upstream Bits UI reference for exhaustive API details.

Continue