s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Chat · Components

RoomList

Sidebar room navigation with unread badges

Public export

typescript
import { RoomList } from '@happyvertical/smrt-chat/svelte';
Import path
@happyvertical/smrt-chat/svelte
Props
4
Props described
4 of 4
Bindable state
0
Callback events
2
Verified release
0.44.0

Props

NameTypeRequiredDescription
roomsChatRoomData[]YesAvailable chat rooms
currentRoomIdstringNoCurrently selected room ID
onselectroom(roomId: string) => voidYesCallback when a room is selected
oncreateroom() => voidNoCallback to open create room dialog

Bindable state

This component has no bindable public state.

Callback events

  • onselectroom(roomId: string) => void
  • oncreateroom() => void

Examples and explanation