apps/ui-library/content/docs/nuxtjs/realtime-avatar-stack.mdx
<BlockItem name="realtime-avatar-stack-nuxtjs" description="Renders a stack of avatars which are connected via Supabase Realtime" />
This block assumes that you have already installed a Supabase client for Nuxt from the previous step.
<RegistryBlock itemName="realtime-avatar-stack-nuxtjs" />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.
<script setup lang="ts">
// Assumes you have Header component created
import Header from '@/components/Header.vue'
import RealtimeAvatarStack from '@/components/RealtimeAvatarStack.vue'
</script>
<template>
<Header class="flex items-center justify-between">
<h1>Lumon Industries</h1>
<RealtimeAvatarStack roomName="break_room" />
</Header>
</template>
| Prop | Type | Default | Description |
|---|---|---|---|
roomName | string | null | The name of the Supabase Realtime room to connect to |