Skip to content
Ringobook v3.29.0

Transcript rows

A transcript row is a call-log line that combines a timestamp, optional play control, speaker identity, and transcribed text. Styles ship in @ringover/styles molecules — there is no Web Component or Ro* Vue wrapper.

Use .ro-transcription-row as the interactive root. The first column is .ro-transcription-row-duration (timestamp + action). Content lives in .ro-transcription-row-content.

<div class="ro-transcription-row" tabindex="0">
<div class="ro-transcription-row-duration">
<div>04:50</div>
<div class="ro-transcription-row-action">
<div class="ro-btn ro-variant-ghost ro-size-sm ro-shape-icon">
<i class="ro-icon ro-icon-play-full" aria-hidden="true"></i>
<i class="ro-icon ro-icon-pause" aria-hidden="true"></i>
</div>
</div>
</div>
<div class="ro-transcription-row-content">
<div class="ro-transcription-row-contact">
<div class="ro-avatar ro-size-2xs">
<img class="ro-avatar_img" alt="" src="https://i.pravatar.cc/150?img=47" />
</div>
<span class="ro-u-text-ellipsis">Maya Johnson</span>
</div>
<p class="ro-transcription-row-text">I appreciate the innovation, yet I'm curious about your target market.</p>
</div>
</div>
Preview
04:50
Maya Johnson

I appreciate the innovation, yet I'm curious about your target market.

The play control stays hidden until hover, focus-within, or an active now-playing row. Include both .ro-icon-play-full and .ro-icon-pause; CSS shows the correct icon for .now-playing.

ClassMeaning
.activePlayhead / selected line (accent background).
.now-playingAudio is playing; pause icon stays visible when combined with .active.
<div class="ro-transcription-row active now-playing" tabindex="0">
<!-- same inner structure as basic row -->
</div>
Preview
04:50
MJ
Maya Johnson

I appreciate the innovation, yet I'm curious about your target market.

Add .ro-transcription-row-continuation on follow-up lines from the same speaker. The contact block is hidden; only the new timestamp column is shown.

<div class="ro-transcription-row" tabindex="0">…</div>
<div class="ro-transcription-row ro-transcription-row-continuation">
<div class="ro-transcription-row-duration">
<div>04:58</div>
<div class="ro-transcription-row-action">…</div>
</div>
<div class="ro-transcription-row-content">
<p class="ro-transcription-row-text">We sell to mid-market teams that already record their calls.</p>
</div>
</div>
Preview
04:50
Maya Johnson

I appreciate the innovation, yet I'm curious about your target market.

04:58

We sell to mid-market teams that already record their calls.

.ro-no-audio marks read-only rows (no recording). Hover, focus, and active backgrounds stay off and the play action is hidden.

<div class="ro-transcription-row ro-no-audio">
…
</div>
Preview
04:50
Maya Johnson

I appreciate the innovation, yet I'm curious about your target market.

While audio plays, register a Highlight named ro-transcription-spoken on the spoken text range. Styles map it with ::highlight(ro-transcription-spoken) on .ro-transcription-row.

const range = new Range();
// set range on the transcript text node…
CSS.highlights.set('ro-transcription-spoken', new Highlight(range));

Clear the highlight when playback stops: CSS.highlights.delete('ro-transcription-spoken').

Class / attributeDescription
.ro-transcription-rowRoot row; clickable unless .ro-no-audio.
.ro-transcription-row-durationTimestamp column; hosts .ro-transcription-row-action.
.ro-transcription-row-actionGhost icon play/pause control (first duration column only).
.ro-transcription-row-contentSpeaker + transcript column.
.ro-transcription-row-contactAvatar and name (Avatars).
.ro-transcription-row-textTranscript body; first letter is capitalized via CSS.
.activeSelected / playhead line.
.now-playingPlayback in progress; swaps play/pause icon visibility.
.ro-transcription-row-continuationSame-speaker follow-up; hides contact.
.ro-no-audioRead-only row without playback.
VariableDefaultDescription
--ro-transcription-row-bgtransparentRow background.
--ro-transcription-row-bg-hovervar(--ro-colors-component-regular)Hover / focus-within background.
--ro-transcription-row-bg-activevar(--ro-colors-accent-light).active background.
--ro-transcription-row-duration-widthvar(--ro-size-9)Timestamp column width.
--ro-transcription-row-playing-colorvar(--ro-colors-accent-highlight)Spoken highlight text color.

Changelog

Recent updates in @ringover/styles. See the full package changelog .

@ringover/styles@3.29.0
  • Call-log transcription rows with hover, active playhead, now-playing, same-speaker continuation, and read-only no-audio states.
  • Spoken passage styling via the `ro-transcription-spoken` CSS custom highlight.