BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Supabase UI Library/current-user-avatar-tanstack

Current User Avatar

supabase-ui-library/current-user-avatar-tanstack
UnverifiedComponent

Component which renders the current user's avatar.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/aimultiple-benchmark/supabase-bench-cr-2/main/apps/ui-library/public/r/current-user-avatar-tanstack.json

Source

registry/default/blocks/current-user-avatar/components/current-user-avatar.tsxraw.githubusercontent.com/aimultiple-benchmark/supabase-bench-cr-2/main/apps/ui-library/public/r/current-user-avatar-tanstack.json
1'use client'
2
3import { useCurrentUserImage } from '@/registry/default/blocks/current-user-avatar/hooks/use-current-user-image'
4import { useCurrentUserName } from '@/registry/default/blocks/current-user-avatar/hooks/use-current-user-name'
5import { Avatar, AvatarFallback, AvatarImage } from '@/registry/default/components/ui/avatar'
6
7export const CurrentUserAvatar = () => {
8 const profileImage = useCurrentUserImage()
9 const name = useCurrentUserName()
10 const initials = name
11 ?.split(' ')
12 ?.map((word) => word[0])
13 ?.join('')
14 ?.toUpperCase()
15
16 return (
17 <Avatar>
18 {profileImage && <AvatarImage src={profileImage} alt={initials} />}
19 <AvatarFallback>{initials}</AvatarFallback>
20 </Avatar>
21 )
22}

What it pulls in

npm packages

  • @supabase/ssr@latest
  • @supabase/supabase-js@latest

Other registry items

  • avatar

Files it writes

  • registry/default/blocks/current-user-avatar/components/current-user-avatar.tsx
  • registry/default/blocks/current-user-avatar/hooks/use-current-user-name.ts
  • registry/default/blocks/current-user-avatar/hooks/use-current-user-image.ts
  • registry/default/clients/tanstack/lib/supabase/client.ts
  • registry/default/clients/tanstack/lib/supabase/server.ts

Facts

Registry
Supabase UI Library
Type
registry:component
Access
Unverified
Files written
5
Licence
Apache-2.0
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

supabase.com aimultiple-benchmark/supabase-bench-cr-2 on GitHub Raw registry item This item as JSON

More from Supabase UI Library

All 37 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Current User Avatarcurrent-user-avatar-nextjsSupabase UI LibraryComponentsUnverified2 deps · 6 files
Current User Avatarcurrent-user-avatar-reactSupabase UI LibraryComponentsUnverified1 dep · 4 files
Current User Avatarcurrent-user-avatar-react-routerSupabase UI LibraryComponentsUnverified2 deps · 5 files
Dropzone (File Upload)dropzone-nextjsSupabase UI LibraryComponentsUnverified4 deps · 5 files
Dropzone (File Upload)dropzone-reactSupabase UI LibraryComponentsUnverified3 deps · 3 files
Dropzone (File Upload)dropzone-react-routerSupabase UI LibraryComponentsUnverified4 deps · 4 files
Dropzone (File Upload)dropzone-tanstackSupabase UI LibraryComponentsUnverified4 deps · 4 files
Infinite Query for Vue and Supabaseinfinite-query-composableSupabase UI LibraryComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex