File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Container } from '../docs/container' ;
2+ import { ChatIndicator } from '../livekit/chat-indicator' ;
3+
4+ export default function ChatIndicatorDemo ( ) {
5+ return (
6+ < Container componentName = "ChatIndicator" >
7+ < ChatIndicator />
8+ </ Container >
9+ ) ;
10+ }
Original file line number Diff line number Diff line change 1+ import { type VariantProps , cva } from 'class-variance-authority' ;
2+ import { cn } from '@/lib/utils' ;
3+
4+ export const chatIndicatorVariants = cva ( [
5+ 'inline-block size-2.5 animate-pulse rounded-full' ,
6+ 'bg-muted-foreground' ,
7+ ] ) ;
8+
9+ export interface ChatIndicatorProps extends VariantProps < typeof chatIndicatorVariants > {
10+ className ?: string ;
11+ }
12+
13+ export function ChatIndicator ( { className } : ChatIndicatorProps ) {
14+ return < span className = { cn ( chatIndicatorVariants ( ) , className ) } /> ;
15+ }
You can’t perform that action at this time.
0 commit comments