import type { ExampleUsage, StoryUsage } from './types';
/**
* ChatGPT Style — compact vertical panel with avatar-led assistant rows
* and right-aligned user bubbles, scaled to embed inside a larger page.
*/
const chatGptStyle: StoryUsage = {
intro:
'Use **Chat Panel Layout** when the chat lives *inside* a larger page — a sidebar, a drawer, or a companion panel (e.g. ChatGPT-style). The panel is a fixed-size flex column: a header strip, a scrollable `ChatContainer` for the thread, and a `PromptInput` footer. Assistant messages lead with an avatar and use transparent-background markdown prose; user messages are right-aligned pills. Contrast with **Centered Conversation** (the chat *is* the page) and **Docked Widget** (a floating overlay).',
snippets: {
html: `
Chat PanelGPT-4o Mini
Hi there! How can I help?
What is this about?
`,
react: `import { useState } from 'react';
import {
ChatConfig, ChatContainer,
Message, MessageAvatar, MessageContent, MessageActions,
PromptInput, PromptInputTextarea, PromptInputActions,
Button,
} from '@kitn.ai/chat/react';
/**
* Chat Panel Layout — compact vertical panel for embedding inside a page.
* Avatar-led assistant rows, right-aligned user bubbles, composer footer.
*/
export function ChatPanel() {
const [input, setInput] = useState('');
return (