Skip to content
Sign in
VoiceSentiment trackMenu

Sentiment trackPro

Caller sentiment along a call as one quiet line, with the dips labeled by what happened.

ProA billing call with two labeled dips and the lift when the refund lands.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/sentiment-track

Usage

tsx
import { SentimentTrack } from "@/components/ui/chatcn/pro/sentiment-track"

<SentimentTrack points={sentiment} events={moments} time={player.time} onSeek={seek} />

Most of a call is neutral and should look it: the line is gray and only the stretches below dipBelow turn red. Events inside a dip get a label at that point; click one to seek. Time runs left to right in every language.

Examples

States

ProA calm call, a stricter dip line and a compact row.

Props

PropTypeNotes
points{ t, value }[]Seconds and -1 to 1
events{ t, label }[]Labeled when they fall in a dip
time, onSeeknumber, (t) => voidPlayback cursor and seeking
dipBelownumberDefault -0.3
heightnumberDefault 96

Accessibility

  • The chart is a named image described by a table of the dips with their times.