Skip to content
Sign upGet access
MicrointeractionsBarge inMenu

Barge in (Pro)

ProIncluded in $99

Talking over the agent, made visible: its voice wave yields while yours spreads into the space.

ProThe agent is speaking; you cut in and its wave yields, flattening and drawing back while yours rises into the space; then it takes the floor back.

The agent's voice fills the strip as a wave. The moment you start speaking, its wave yields: it squeezes toward its own end and steps back in tone while yours spreads into the space it leaves, and the label says it is listening. When you stop it takes the floor back the same way. Both waves read real levels.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/barge-in

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { BargeIn } from "@/components/ui/chatcn/pro/barge-in"

<BargeIn speaker={floor} agentLevel={tts.getLevel} userLevel={mic.getLevel} />

Props

PropTypeNotes
speaker"agent" | "user" | "none"Who holds the floor
agentLevel / userLevel() => number0 to 1, read every frame
agentName / userNamestringDefault Agent and You

Accessibility

  • The waves are decorative; who is speaking is a polite role="status".

Motion

  • The floor is a critically damped spring on the agent's share; bars are scaleY transforms. Reduced motion: the share jumps.