Documentation

Using Inner Threads

Widget

Add a floating chat launcher or inline inbox to Laravel. Configure themes, branding, dates, translation, and asset hosting.

Blade properties

Property Values Default
mode floating, inline floating
view compact, expanded compact
side left, right in floating mode right
theme light, dark, auto light
accent Six-digit hex color #29292e
label Text used on the launcher and widget header Inner Threads
show-watermark Boolean for the linked logo in the inbox header true
dates Per-widget date display overrides widget.dates config
assets Override the frontend asset base address Versioned Laravel asset URL
api Override the API base address Registered Laravel routes
authenticated Blade boolean from your host guard Default guard check
Blade
<x-inner-threads::widget
    mode="floating"
    side="left"
    theme="dark"
    accent="#303e70"
    label="Staff chat"
/>

Size the inline widget

Style an enclosing class or attach a class to the Blade component. The widget exposes CSS variables on its root.

CSS
.staff-inbox {
    --inner-threads-height: 640px;
}

Set widget.view to expanded to open in expanded view. Override it for one Blade widget with view="compact".

Other layout variables include --inner-threads-width, --inner-threads-offset and --inner-threads-z. Choose an accent with enough contrast against white text.

Colors and appearance

The embeddable widget defaults to a light theme with a neutral accent. It also supports a dark theme. Set theme="auto" to follow the device. Override the action color with accent, or set CSS variables on the widget root when it needs to match your app’s brand.

Set widget.brand to change the default title and widget.show_watermark to false to hide the logo. Use label and :show-watermark="false" to customize an individual Blade widget. When visible, the logo itself links to the Inner Threads website in a new tab.

Your profile

Open Your profile from the inbox menu to change your photo, choose light or dark, or mute browser alerts across chats. Your preferences follow your account within the workspace. A custom photo overrides the avatar supplied by the host directory until you remove it.

Inbox search and starred messages

The inbox searches contactable users by default. See Messaging and groups for search, stars, archives, and unread counts.

Chat dates

Date dividers show Today, Yesterday, weekday names for messages two to six days old, and your locale’s medium date format for older messages. They use the viewer’s time zone by default.

Set widget.dates in config/inner-threads.php to change these defaults. This example shows numeric dates for every divider in the specified time zone.

PHP
'dates' => [
    'relative' => false,
    'format' => ['day' => '2-digit', 'month' => '2-digit', 'year' => 'numeric'],
    'time_zone' => 'Asia/Karachi',
],

The app’s locale controls the order of the date fields. Use 'weekday_days' => 0 to keep Today and Yesterday and use absolute dates for earlier messages. Choose a time zone when everyone in the app should see the same calendar day and message time.

Delete messages

Use a message’s Delete action to enter selection mode. See edit and delete for scopes and time limits.

Long conversations

The widget loads the latest page first and fetches older messages as you scroll. See inbox and history for cursor behavior.

Attach files

The composer supports the paperclip, drag and drop, and mixed attachments. See Attachments and voice for supported previews and limits.

Record a voice message

The microphone appears in an empty composer when voice messages are enabled. See record a voice message for capture and playback.

Conversation and message drawers

Conversation headers open group or contact info. Sender names and mentions in groups open individual profiles. See groups and contact profiles and read receipts and shared items.

Open from your navigation

Give the widget an ID and send an event from your own button.

Blade
<x-inner-threads::widget id="staff-chat" />
JavaScript
document.querySelector('#staff-chat').dispatchEvent(
    new CustomEvent('inner-threads:open', {
        detail: { conversationId: 42 }
    })
)

Omit conversationId to open the inbox. Pass focus: false in the event detail when opening a conversation during page load. Use the JavaScript API when the host manages mounting or unmounting.

Translate labels

Terminal
php artisan vendor:publish --tag=inner-threads-lang

Add a locale under lang/vendor/inner-threads and use the host's Laravel locale configuration. On a manual JavaScript mount, pass locale and strings.

Serve assets yourself

The widget serves bundled CSS, JavaScript, fonts, and the logo unless you set an assets URL, configure a custom widget.asset_path, or disable widget.serve_assets. To use static files in your public directory, set widget.serve_assets to false, then publish:

Terminal
php artisan vendor:publish --tag=inner-threads-assets --force

Serve JavaScript modules with an appropriate MIME type and include the asset and API origins in your content security policy. Bundled Poppins uses the same asset origin. Set --inner-threads-font on the widget to change the font stack. An existing site with cached assets should refresh its cache as part of an upgrade.