Realtime Avatar Stack
supabase-library/realtime-avatar-stack-nuxtjsFreeBlock
Component which stack of avatars, tracked by realtime presence.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/supabase/supabase/master/apps/ui-library/public/r/realtime-avatar-stack-nuxtjs.jsonSource
1<script setup lang="ts">2import { computed } from 'vue'34 // @ts-ignore5import AvatarStack from '@/components/avatar-stack.vue'6import { useRealtimePresenceRoom } from '../composables/useRealtimePresenceRoom'78const props = defineProps<{9 roomName: string10}>()1112const { users: usersMap } = useRealtimePresenceRoom(props.roomName)1314const avatars = computed(() =>15 Object.values(usersMap.value).map((user) => ({16 name: user.name,17 image: user.image,18 }))19)20</script>2122<template>23 <AvatarStack :avatars="avatars" />24</template>
What it pulls in
npm packages
Other registry items
Files it writes
More from Supabase Library
All 60 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Current User Avatarcurrent-user-avatar-nuxtjs | Supabase Library | Blocks | Free | 1 dep · 3 files | |
| Current User Avatarcurrent-user-avatar-vue | Supabase Library | Blocks | Free | 1 dep · 3 files | |
| Dropzone (File Upload) for Nuxt and Supabasedropzone-nuxtjs | Supabase Library | Blocks | Free | 3 deps · 4 files | |
| Dropzone (File Upload) for Vue and Supabasedropzone-vue | Supabase Library | Blocks | Free | 3 deps · 4 files | |
| Infinite Query Hookinfinite-query-hook | Supabase Library | Blocks | Free | 2 deps | |
| Password Based Auth flow for Nextjs and Supabasepassword-based-auth-nextjs | Supabase Library | Blocks | Free | 2 deps · 17 files | |
| Password Based Auth flow for Nuxt.js and Supabasepassword-based-auth-nuxtjs | Supabase Library | Blocks | Free | 2 deps · 12 files | |
| Password Based Auth flow for React and Supabasepassword-based-auth-react | Supabase Library | Blocks | Free | 1 dep · 5 files |
