Компоненты
- Accordion
- Alert
- Alert Dialog
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Checkbox
- Checkbox Group
- Collapsible
- Combobox
- Command
- Date Picker
- Dialog
- DrawerNew
- Empty
- Field
- Fieldset
- Form
- Frame
- Group
- Input
- Input Group
- Kbd
- Label
- Menu
- Meter
- Number Field
- OTP FieldNew
- Pagination
- Popover
- Preview Card
- Progress
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Toolbar
- Tooltip
AI Components
- AI Components
- Chat Conversation
- Chat Message
- Chat Response
- Chat Suggestion
- Chat Prompt Input
- Chat Attachments
- Chat Code Block
- Chat Image
- Chat Inline Citation
- Chat Reasoning
- Chat Sources
- Chat Actions
- Chat Context
- Chat Loader
- Chat Task
- Chat Tool
- Chat Web Preview
- Chat Snippet
- Chat Terminal
- Chat Stack Trace
- Chat Test Results
- Chat File Tree
- Chat Environment Variables
- Chat Audio Player
- Chat Transcription
- Chat Speech Input
- Chat Mic Selector
- Chat Voice Selector
- Chat Agent
- Chat Persona
- Chat Connection
- Chat Queue
- Chat Checkpoint
- Chat Confirmation
- Chat Artifact
- Chat JSX Preview
- Chat Schema Display
- Chat Package Info
- Chat Commit
- Chat Plan
- Chat Panel
- Chat Open In Chat
- Chat Sandbox
- Chat Model Selector
- Chat Canvas
- Chat Node
- Chat Edge
Resources
Chat Panel
Generic side-panel контейнер для workspace-сплитов чата.
Main chat area (placeholder)
Agent settings
Tune the active agent for this session
v3 · synced
import { Button } from "@/components/ui/button";
import {
ChatPanel,
ChatPanelActions,
ChatPanelClose,
ChatPanelContent,
ChatPanelDescription,
ChatPanelFooter,
ChatPanelHeader,
ChatPanelTitle,
} from "@/components/ui/chat-panel";
export default function Particle() {
return (
<div className="grid h-[480px] w-full grid-cols-[minmax(0,1fr)_320px] gap-3 p-4">
<div className="rounded-lg border bg-card p-3 text-muted-foreground text-sm">
Main chat area (placeholder)
</div>
<ChatPanel>
<ChatPanelHeader>
<div className="flex min-w-0 flex-col">
<ChatPanelTitle>Agent settings</ChatPanelTitle>
<ChatPanelDescription>
Tune the active agent for this session
</ChatPanelDescription>
</div>
<ChatPanelActions>
<ChatPanelClose />
</ChatPanelActions>
</ChatPanelHeader>
<ChatPanelContent>
<div className="flex flex-col gap-3 p-3 text-sm">
<label className="flex items-center justify-between gap-3">
<span>Temperature</span>
<input
className="w-32"
defaultValue="0.7"
max="2"
min="0"
step="0.1"
type="range"
/>
</label>
<label className="flex items-center justify-between gap-3">
<span>Max tokens</span>
<input
className="w-24 rounded border bg-background px-2 py-1 text-xs"
defaultValue="4096"
type="number"
/>
</label>
<label className="flex items-center justify-between gap-3">
<span>Streaming</span>
<input defaultChecked type="checkbox" />
</label>
</div>
</ChatPanelContent>
<ChatPanelFooter>
<span className="text-muted-foreground text-xs">v3 · synced</span>
<Button size="sm">Save</Button>
</ChatPanelFooter>
</ChatPanel>
</div>
);
}
Installation
pnpm dlx shadcn@latest add @jenny/chat-panel
Usage
import {
ChatPanel,
ChatPanelActions,
ChatPanelClose,
ChatPanelContent,
ChatPanelDescription,
ChatPanelFooter,
ChatPanelHeader,
ChatPanelTitle,
} from "@/components/ui/chat-panel";
<div className="grid h-full grid-cols-[1fr_320px] gap-3">
<main>{/* chat */}</main>
<ChatPanel>
<ChatPanelHeader>
<div>
<ChatPanelTitle>Settings</ChatPanelTitle>
<ChatPanelDescription>Tune the active agent</ChatPanelDescription>
</div>
<ChatPanelActions>
<ChatPanelClose onClick={closePanel} />
</ChatPanelActions>
</ChatPanelHeader>
<ChatPanelContent>{/* form / tools / file tree */}</ChatPanelContent>
<ChatPanelFooter>
<span className="text-muted-foreground text-xs">v3</span>
<Button size="sm">Save</Button>
</ChatPanelFooter>
</ChatPanel>
</div>vs Jenny Sheet
ChatPanel— статичный flex-column, остаётся в потоке layout. Хорош для workspace-сплитов (sidebar + chat + tools).Sheet— overlay через portal с фокус-trap. Для модальных drawer-ов.
Если нужен sliding-from-right overlay — бери Sheet. Для постоянной правой колонки — ChatPanel.
On This Page