Skip to content

02 · Inline

Mount the chat inside a specific container instead of the floating bubble. Useful for support pages, dashboard panels, or anywhere the chat should be part of the page flow.

Snippet

js
Bridle.init({
  apiUrl,
  agentId,
  token,
  mode: 'inline',
  mount: '#chat-inline',
  title: 'Support',
})

The container's size defines the chat's size:

html
<div id="chat-inline" style="height: 520px"></div>

Live demo

What changes vs. floating

OptionFloating (default)Inline
mode'floating''inline'
mount<body>your container selector
Positionfixed bottom-rightflows with the page
FAByes (toggles panel)no — chat is always open
Height560px / clamped to viewport100% of the container, min 480px

Why call init() instead of using <script data-*>

Auto-mount is one widget per script tag. The programmatic form lets you:

  • Mount multiple widgets on the same page (one init() call each).
  • Pass a function for token (see Authenticator).
  • Wire onReady / onMessage / onError callbacks.

The data-mode="inline" / data-mount attributes work too — pick whichever fits your loading order.

Next

  • Styles — theme, CSS variables, custom CSS in the shadow root.
  • Embed → Theming — full reference for visual customization.

Released under the MIT License.