---
title: Realtime Avatar Stack
description: Avatar stack in realtime
preview: |-
---
## Installation
## 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)
- [Getting started with Realtime](https://supabase.com/docs/guides/realtime/getting_started)
- [Realtime limits](https://supabase.com/docs/guides/realtime/limits)
- [Realtime message usage and billing](https://supabase.com/docs/guides/platform/manage-your-usage/realtime-messages)
- [Row Level Security](https://supabase.com/docs/guides/database/postgres/row-level-security)