Usage
Features
- Configure which controls are visible:
microphone,camera,screenShare,chat, andleave - Select from three styles:
default,outline, andlivekit - Control chat input visibility with
isChatOpenandonIsChatOpenChange - Persist user device preferences with
saveUserChoices(enabled by default) - Handle device errors
Installation
pnpm dlx shadcn@latest add @agents-ui/agent-control-bar
Props
| Prop name | Type | Default |
|---|---|---|
variant? | enum | default |
controls? | AgentControlBarControls |
|
saveUserChoices? | boolean | true |
isConnected? | boolean | – |
isChatOpen? | boolean | – |
onDisconnect? | function | – |
onIsChatOpenChange? | function | – |
onDeviceError? | function | – |
ref? | Ref<HTMLDivElement> | – |
...props? | ComponentProps<'div'> | |