A character limit must agree with the backend's definition of length. Emoji and combined characters can complicate a simple count.
Worked example
<label class="stack"
>Project brief (up to 200 characters)<textarea
rows="4"
maxlength="200"
placeholder="Describe your project"
></textarea>
</label>Implementation notes
A counter is most useful near the limit. Avoid repeatedly interrupting assistive technology with a full status announcement for every keystroke.
Try it yourself
Paste an emoji and a multi-line message near the configured limit.
Open the UI Components example →Editorial date October 11, 2025 · Published December 6, 2026