Dev Design Library

Char Limit Indicator

A radial progress ring + n/MAX monospace counter that turns error-colored when over the limit, deriving the percentage internally from charCount + maxLength. Pure SVG, shadcn/CSS-variable themed (not daisyUI). Self-contained — sits beside a.

Char Limit Indicator preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Install
npx shadcn add @localmode/ui/ui/input-controls/char-limit-indicator
Files
  • apps/ui/registry/localmode/input-controls/char-limit-indicator/char-limit-indicator.tsx
  • apps/ui/src/lib/utils.ts
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode