Skip to content

Chat Container

Layout component

<loquix-chat-container> is the root shell for a complete chat experience. It coordinates layout and shared chat state while leaving every region composable through slots.

loquix-chat-containerroot layoutstate-aware
Full chat layout Live component
Welcome! What would you like to build today?Help me design an AI research interface.
import '@loquix/core/define/define-chat-container';
import '@loquix/core/define/define-chat-header';
import '@loquix/core/define/define-message-list';
import '@loquix/core/define/define-chat-composer';
<loquix-chat-container layout="full" mode="chat">
<loquix-chat-header slot="header" agent-name="My Assistant"></loquix-chat-header>
<loquix-message-list slot="messages"></loquix-message-list>
<loquix-chat-composer slot="composer"></loquix-chat-composer>
</loquix-chat-container>
Property Attribute Type Default Description
layout layout 'full' | 'panel' | 'floating' | 'inline' 'full' Selects the outer layout treatment.
mode mode 'chat' | 'research' | 'build' | 'create' 'chat' Describes the current product mode.
model model string '' Current model identifier.
memoryEnabled memory-enabled boolean false Indicates that conversation memory is enabled.
privateMode private-mode boolean false Hides model information in descendants that consume the shared state.
streaming streaming boolean false Indicates that the assistant is currently streaming.
Slot Purpose
header Chat header region.
sidebar Optional navigation or contextual panel.
messages Scrollable message history.
composer Prompt composer region.
footer Optional content below the primary layout.
Part Purpose
container Outermost wrapper.
main Header, message list, and composer column.
sidebar Optional sidebar region.
Variable Purpose
--loquix-container-bg Container background.
--loquix-container-max-width Maximum width in the full layout.
--loquix-container-border-radius Corner radius in the floating layout.
--loquix-container-shadow Shadow in the floating layout.
--loquix-sidebar-width Width of the sidebar region.
--loquix-border-color Shared layout border color.
Floating assistant shell
loquix-chat-container {
--loquix-container-border-radius: 24px;
--loquix-container-shadow: 0 24px 64px rgb(24 18 52 / 20%);
}