Dev Helpers

UI Components / Search and filtering

Search result with matched text

Dev Helpers · July 2, 2026

Highlighting matched text helps readers understand why a result appeared. Preserve the original label and avoid interpreting a search term as markup.

Worked example

<div class="box stack">
  <p class="kicker">Documentation</p>
  <h2>Install the client</h2>
  <p>Use the <mark>client</mark> package to connect your application.</p>
</div>

Implementation notes

Highlight spans should preserve the complete accessible name of a result. Splitting the text across styling wrappers must not alter the word sequence.

Try it yourself

Search for punctuation and for a term that appears twice.

Open the UI Components example →

Editorial date July 2, 2026 · 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.