← All Components
CharacterCounter
Utilities
Live character count display with configurable limit and warning threshold.
Live Demo
Animates to 42: 0
Animates to 850 with prefix: $ 0
Animates to 1000 with suffix: 0 users
Usage
<script>
import { CharacterCounter } from "jatui"
</script>
<CharacterCounter />Props
| Prop | Type | Default | Description |
|---|---|---|---|
current | number | 0 | Current character count |
max | number | - | Maximum characters |
warningThreshold | number | 0.8 | Warning at this % of max |