import type { Meta, StoryObj } from 'storybook-solidjs-vite'; import { createSignal } from 'solid-js'; import { ChatConfig, ChatContainer, ChatContainerContent, ChatContainerScrollAnchor, Message, MessageAvatar, MessageContent, PromptInput, PromptInputTextarea, PromptInputActions, Button, } from '../index'; import { ArrowUp, X } from 'lucide-solid'; const meta: Meta = { title: 'Patterns/Docked Widget', parameters: { layout: 'centered', docs: { description: { component: 'A support-assistant widget docked to the bottom-right corner of a host page. The same building blocks (`ChatContainer` + `Message` + `PromptInput`) shrink into a compact floating card — the kit\'s Shadow-DOM isolation means it can sit over any app without CSS bleed.', }, }, }, }; export default meta; type Story = StoryObj; export const SupportAssistant: Story = { render: () => { const [input, setInput] = createSignal(''); return ( {/* Faux host page */}
{/* Docked chat widget */}
Support
Hi! 👋 How can I help you today? How do I reset my password? Head to **Settings → Security** and click **Reset password** — you'll get an email link.
setInput('')}>
); }, };