Getting Started
Components
- Accordion
- Advanced Toast
- AlertMessage
- ArrowButton
- Arrows
- Avatar
- Backdrop
- Basic Toast
- Breadcrumb
- Button
- CardBackground
- Card
- Carousel
- Chapters
- ChatBody
- ChatButton
- ChatHeader
- ChatInput
- ChatMessageActions
- ChatMessageEditor
- ChatMessage
- ChatTypingIndicator
- ChatWindowCsatPrompt
- ChatWindowQuote
- ChatWindow
- CheckboxSelect
- Checkbox
- Checkboxes
- Chip
- ChoiceExpander
- Clickable
- ContentReview
- Countdown
- CriteriaDates
- CriteriaParticipants
- CriteriaTransports
- Date Field
- Datepicker
- Dropdown
- ElasticHeight
- ExpandableCard
- ExpandableText
- Filter
- FloatingLabelTextField
- Form Control
- Form Label
- Frame
- HamburgerIcon
- Heading
- Image
- JourneyCard
- LayerHeader
- Layer
- Link
- Loader
- Number Field
- PageNavigation
- Pagination
- Paragraph
- Password
- Phone Field
- Popin
- Portal
- ProductThumbnail
- Promises
- Prose
- Radio Group
- RadioSelect
- Radio
- Range
- Scrollbar
- Select
- SidebarLayout
- SliderFrame
- SparkleWrapper
- Spinner
- Switch
- Table
- Tabs
- Tag
- TextField
- Toggle
- Tooltip
- ValidationMessage
Ask me a question
'use client';
import { ChatHeader } from '@/ui/ChatHeader';
export function ChatHeaderDemo() {
return (
<div className="w-380">
<ChatHeader title="Ask me a question" />
</div>
);
}
Installation
npx shadcn@latest add https://develop.trident-ui.pro.clubmed/r/chat-header.json
Usage
import { ChatHeader } from '@/ui/ChatHeader';
export function Component() {
return <ChatHeader title="Ask me a question" />;
}ChatHeader is typically composed alongside ChatBody and ChatInput — see the
ChatWindow docs for the full
composable pattern.
Custom Logo
Pass logo to replace the default Sparkles icon button — for example with your brand mark.
import { ChatHeader } from '@/ui/ChatHeader';
import { Icon } from '@clubmed/trident-icons';
export function Component() {
return (
<ChatHeader
title="Ask me a question"
logo={
<div className="flex items-center justify-center size-48 rounded-full bg-white">
<Icon name="Brand" width="24px" />
</div>
}
/>
);
}API Reference
ChatHeader
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | "Ask me a question" | Heading text displayed in the header |
logo | ReactNode | undefined | Custom logo node; defaults to a Sparkles icon button |
Notes
- Purely presentational — no internal state, no imperative handle.
- Used as the top section inside
ChatWindow, or standalone when composing your own chat panel.