UI
← Home

Char Counter

A multi-line text field with a live character counter. A polite `role="status"` region reports how many characters remain and is wired to the field via `aria-describedby`; typing updates the count and input is capped at the maximum.

  • Axe
  • Focus

Preview

20 characters remaining

Installation

npx shadcn@latest add https://ui.publictheta.com/r/char-counter.json

Conformance

Verified against the @publictheta/ui-spec char-counter specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.

  • Axe No WCAG 2 A/AA axe-core violations
  • Focus A visible focus indicator appears on keyboard focus (WCAG 2.4.7)

See the full conformance matrix across all components.