Chat · Components
ChatTabs
Facebook-style expandable chat tabsPublic export
typescript
import { ChatTabs } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 7
- Props described
- 7 of 7
- Bindable state
- 0
- Callback events
- 4
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
tabsChatTabState[]YesActive chat tabsmessagesByRoomRecord<string, ChatMessageData[]>NoMessages keyed by roomIdcurrentProfileIdstringNoCurrent user's profile IDonexpand(roomId: string) => voidYesExpand a taboncollapse(roomId: string) => voidYesCollapse a tabonclose(roomId: string) => voidYesClose a tabonsend(roomId: string, content: string) => voidNoSend a message in a tabBindable state
This component has no bindable public state.
Callback events
onexpand(roomId: string) => voidoncollapse(roomId: string) => voidonclose(roomId: string) => voidonsend(roomId: string, content: string) => void