Dev Helpers

React / Feedback

Polite status region

Dev Helpers · May 10, 2026

A polite live region announces updates when assistive technology has an opportunity. Mount the region before changing its contents so the update can be detected.

Worked example

// components/PoliteStatusRegion.tsx

export default function PoliteStatusRegion({
  message = "Changes saved",
}: { message?: string } = {}) {
  return <p role="status">{message}</p>;
}

Implementation notes

Keep the live region separate from a rapidly rerendered decorative counter. Replacing the region itself can cause announcements to be dropped or repeated.

Try it yourself

Trigger two quick status changes and check that the final message is understandable.

Open the React example →

Editorial date May 10, 2026 · Published December 6, 2026

Related articles

Percentage meter

A percentage meter needs both a bounded visual fill and a meaningful textual value. Handle a zero denominator before dividing.

Vertical typesetting sample

Vertical typesetting changes the reading direction and available inline space. Treat the sample text as content so it remains selectable and accessible.

Square cover crop

A square image crop gives a card grid consistent geometry. The crop anchor determines whether the most important part of a photo survives.