Get started with Cedar chat components and understand how they work
With one component, you can download a fully working chat. You also get all of the individual components of it, so you can customise styling, rendering, and functionality.
Caption Chat
A caption-style chat interface that appears at the bottom center of the screen, perfect for overlay-style interactions. Great for AI assistants that provide contextual help without taking up dedicated screen space.We realised that in a conversation, you don’t need to see an entire history of the chat all the time, just the latest message (of course, we give the user the option to see past texts). This gives a much more central and embedded experience for agentic interactionsFloating Chat
A floating chat window that can be positioned on the left or right side of the screen with expand/collapse functionality. Perfect for assistance that doesn’t interfere with the main application.Side Panel Chat
A side panel chat that pushes your main content to make room for the chat interface. This is if you want the chat to not overlap with any elements, and always have its own dedicated spot.
Copy
Ask AI
import { FloatingCedarChat } from '@/chatComponents/FloatingCedarChat';function App() { return ( <div> {/* Your main content */} <FloatingCedarChat side='right' title='Assistant' collapsedLabel='How can I help you today?' dimensions={{ width: 400, height: 600, minWidth: 350, minHeight: 400, }} resizable={true} /> </div> );}// Props interfaceinterface FloatingCedarChatProps { side?: 'left' | 'right'; title?: string; collapsedLabel?: string; companyLogo?: React.ReactNode; dimensions?: { width?: number; height?: number; minWidth?: number; minHeight?: number; maxWidth?: number; maxHeight?: number; }; resizable?: boolean;}