Getting Started
Components
- Advanced Toast
- ArrowButton
- Arrows
- Avatar
- Backdrop
- Basic Toast
- Breadcrumb
- Button
- CardBackground
- Card
- Carousel
- ChatButton
- ChatInput
- ChatMessage
- ChatTypingIndicator
- ChatWindow
- CheckboxSelect
- Checkbox
- Checkboxes
- Chip
- ChoiceExpander
- Clickable
- Date Field
- Dropdown
- ElasticHeight
- ExpandableCard
- Filter
- Form Control
- Form Label
- Frame
- HamburgerIcon
- Heading
- Image
- Link
- Loader
- Number Field
- Pagination
- Password
- Phone Field
- Popin
- Portal
- Prose
- Radio Group
- Radio
- Range
- Scrollbar
- Select
- SidebarLayout
- SliderFrame
- Spinner
- Switch
- Tabs
- Tag
- TextField
- Tooltip
- ValidationMessage
'use client';
import { ChatTypingIndicator } from '@/ui/ChatTypingIndicator';
export function ChatTypingIndicatorDemo() {
return (
<div className="flex flex-col gap-4 p-8">
<ChatTypingIndicator />
</div>
);
}
Installation
npx shadcn@latest add https://develop.trident-ui.pro.clubmed/r/chat-typing-indicator.json
Usage
import { ChatTypingIndicator } from '@/ui/ChatTypingIndicator';
export function Component() {
return <ChatTypingIndicator />;
}API Reference
ChatTypingIndicator
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | undefined | Additional CSS classes to apply |
Inherits all HTMLDivElement attributes.
Notes
- Renders with
role="status"andaria-label="Typing"for screen reader accessibility. - The three dots animate with staggered delays to create a natural typing rhythm.
- Displayed inside a
ChatWindowwhenisTypingistrue.