---
title: Realtime Avatar Stack
description: Avatar stack in realtime
---
## Installation
## Folder structure
## Usage
The `RealtimeAvatarStack` component renders stacked avatars which are connected to Supabase Realtime. It uses the Presence feature of Supabase Realtime. You can use this to show currently online users in a chatroom, game session or collaborative app.
```tsx
import { RealtimeAvatarStack } from '@/components/realtime-avatar-stack'
export default function Page() {
return (
)
}
```
## Props
| Prop | Type | Default | Description |
| ---------- | -------- | ------- | ---------------------------------------------------- |
| `roomName` | `string` | `null` | The name of the Supabase Realtime room to connect to |
## Further reading
- [Realtime Presence](https://supabase.com/docs/guides/realtime/presence)
- [Realtime authorization](https://supabase.com/docs/guides/realtime/authorization)