VapiLLM
04/18/2025, 11:56 PMPraveen Nair
04/21/2025, 10:13 AMbuttonConfig
object in your snippet. Set the position
field to "bottom-left"
or "top-left"
depending on where you'd like the icon to appear vertically. Here's how your buttonConfig
object should look:
javascript
const buttonConfig = {
position: "bottom-left", // or "top-left"
offset: "10px", // adjust the offset as needed
width: "50px",
height: "50px",
idle: {
color: `rgb(93, 254, 202)`,
type: "pill",
title: "Have a quick question?",
subtitle: "Talk with our AI assistant",
icon: `https://unpkg.com/lucide-static@0.321.0/icons/phone.svg`,
},
loading: {
color: `rgb(93, 124, 202)`,
type: "pill",
title: "Connecting...",
subtitle: "Please wait",
icon: `https://unpkg.com/lucide-static@0.321.0/icons/loader-2.svg`,
},
active: {
color: `rgb(255, 0, 0)`,
type: "pill",
title: "Call is in progress...",
subtitle: "End the call.",
icon: `https://unpkg.com/lucide-static@0.321.0/icons/phone-off.svg`,
},
};
This will anchor the icon to the left side of the screen instead of the middle. Let me know if you need further assistance.