Chat · Components
ChatLayout
Discord/Slack-style chat layout with sidebarPublic export
typescript
import { ChatLayout } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
roomsChatRoomData[]YesAvailable chat roomscurrentRoomIdstringNoCurrently selected room IDcurrentProfileIdstringYesCurrent user's profile IDonselectroom(roomId: string) => voidYesCallback when a room is selectedoncreateroom() => voidNoCallback to open the create-room affordance in the room listchildrenSnippetYesMain content slotBindable state
This component has no bindable public state.
Callback events
onselectroom(roomId: string) => voidoncreateroom() => void