BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-htmx/meter

Meter

shadcn-htmx/meter
FreeComponent

The native <meter> element (ARIA role="meter") — a gauge of a value within a known range with low/high/optimum zoning. Cross-browser fill colors via the meter pseudo-elements; includes an htmx live-gauge demo.

Live preview

live · rendered by the registry
Rendered by shadcn-htmx on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shadcn-htmx.productdevbook.com/r/meter.json

Source

registry/ui/meter.tsxshadcn-htmx.productdevbook.com/r/meter.json
1/** @jsxImportSource hono/jsx */
2import type { Child } from "hono/jsx"
3import { cn, type ClassValue } from "@/registry/lib/cn"
4
5// Meter — shadcn-htmx, htmx v4 + Tailwind v4.
6//
7// Source of truth:
8// shadcn/ui ships no Meter component. This is a native-platform addition
9// distinct from Progress: a gauge of a value within a known range
10// (battery, disk usage, score) — NOT task completion.
11//
12// We render the real native <meter> element (implicit role="meter"), so the
13// browser supplies the role + value semantics and AT announces the gauge.
14// repos/mdn/files/en-us/web/html/reference/elements/meter/index.md
15// - value/min/max/low/high/optimum attributes (lines 33-48)
16// - "Implicit ARIA role: meter" and "Permitted ARIA roles: No role
17// permitted" (lines 123-134) — so we DO NOT set role/aria-value*; the
18// element maps value/min/max onto aria-valuenow/min/max itself.
19//
20// APG: WAI-ARIA Meter pattern
21// repos/aria-practices/content/patterns/meter/meter-pattern.html
22// - Keyboard Interaction: "Not applicable" (line 46) — a meter is not
23// interactive; no JS keyboard contract.
24// - Accessible name via aria-labelledby (visible label) or aria-label
25// (lines 61-64). We pair with a native <label for> in the docs.
26// - aria-valuetext for human-readable values, e.g. "50% (6 hours)
27// remaining" (lines 56-59) — surfaced via the `valuetext` prop.
28//
29// Cross-browser styling note: WebKit/Blink expose ::-webkit-meter-* and
30// Gecko exposes ::-moz-meter-bar. Both need `appearance: none` to accept
31// custom styles. Those pseudo-elements can't take Tailwind classes, so the
32// fill/track theming lives in app/styles/input.css scoped to
33// [data-slot="meter"]. Tailwind utilities here only size the box.
34
35const meterBase =
36 "block h-2 w-full overflow-hidden rounded-full bg-primary/20 align-middle"
37
38export function meterClasses(opts?: { class?: ClassValue }): string {
39 return cn(meterBase, opts?.class)
40}
41
42type MeterProps = {
43 // Current value. Clamped by the browser to [min, max].
44 value: number
45 min?: number
46 max?: number
47 // Lower/upper bounds of the "low" and "high" zones. Combined with optimum
48 // they drive the optimum / suboptimum / even-less-good fill color.
49 low?: number
50 high?: number
51 optimum?: number
52 id?: string
53 // Free-form units hint. The WHATWG HTML spec notes <meter> has no units
54 // attribute and that title is the only standard way to convey units
55// … truncated

Facts

Registry
shadcn-htmx
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

Docs on shadcn-htmx shadcn-htmx.productdevbook.com productdevbook/shadcn-htmx on GitHub Raw registry item This item as JSON

More from shadcn-htmx

All 83 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionshadcn-htmxComponentsFreeno deps
Active Searchactive-searchshadcn-htmxComponentsFreeno deps
Alertalertshadcn-htmxComponentsFreeno deps
Alert Dialogalert-dialogshadcn-htmxComponentsFreeno deps
Aspect Ratioaspect-ratioshadcn-htmxComponentsFreeno deps
Auto Gridauto-gridshadcn-htmxComponentsFreeno deps
Autocompleteautocompleteshadcn-htmxComponentsFreeno deps
Autosize Textareaautosize-textareashadcn-htmxComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex