
Gleap.showAiChatbar()
Show the chatbar.
Gleap.hideAiChatbar()
Hide the chatbar.
Gleap.setAiChatbarQuickActions(quickActions)
Set the suggested action buttons shown above the input.
Gleap.setAiChatbarPlaceholder(placeholder)
Override the input placeholder text.
Customizing the appearance
The chatbar renders inside a Shadow DOM for style isolation. Override styles from outside using CSS::part(). The host element has class gleap-ai-ui-widget.
| Part | Description |
|---|---|
container | Outermost container |
input-container | Wrapper around the input field |
input-background | Blurred background behind the input |
input | The <input> text field |
send-button | The send button |
quick-actions | The quick actions row |