Dev Helpers

UI Components / Forms and inputs

Message with character limit

Dev Helpers · October 11, 2025

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

Related articles

Article byline

A byline combines authorship and dates without competing with the headline. Use a machine-readable time value alongside the visible date.

Audio episode transcript card

An episode transcript serves readers who cannot or prefer not to play audio. Identify speakers in text and keep the transcript easy to navigate.

Split editorial hero

A split editorial hero needs a deliberate reading order when columns collapse. Place essential copy where it remains intelligible without the accompanying image.