Realtime Cursor
supabase-ui-library/realtime-cursor-react-routerUnverifiedComponent
Component which renders realtime cursors from other users in a room.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/aimultiple-benchmark/supabase-bench-cr-2/main/apps/ui-library/public/r/realtime-cursor-react-router.jsonSource
1import { MousePointer2 } from 'lucide-react'23import { cn } from '@/lib/utils'45export const Cursor = ({6 className,7 style,8 color,9 name,10}: {11 className?: string12 style?: React.CSSProperties13 color: string14 name: string15}) => {16 return (17 <div className={cn('pointer-events-none', className)} style={style}>18 <MousePointer2 color={color} fill={color} size={30} />1920 <div21 className="mt-1 px-2 py-1 rounded-sm text-xs font-bold text-white text-center"22 style={{ backgroundColor: color }}23 >24 {name}25 </div>26 </div>27 )28}
What it pulls in
npm packages
Files it writes
More from Supabase UI Library
All 37 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Current User Avatarcurrent-user-avatar-nextjs | Supabase UI Library | Components | Unverified | 2 deps · 6 files | |
| Current User Avatarcurrent-user-avatar-react | Supabase UI Library | Components | Unverified | 1 dep · 4 files | |
| Current User Avatarcurrent-user-avatar-react-router | Supabase UI Library | Components | Unverified | 2 deps · 5 files | |
| Current User Avatarcurrent-user-avatar-tanstack | Supabase UI Library | Components | Unverified | 2 deps · 5 files | |
| Dropzone (File Upload)dropzone-nextjs | Supabase UI Library | Components | Unverified | 4 deps · 5 files | |
| Dropzone (File Upload)dropzone-react | Supabase UI Library | Components | Unverified | 3 deps · 3 files | |
| Dropzone (File Upload)dropzone-react-router | Supabase UI Library | Components | Unverified | 4 deps · 4 files | |
| Dropzone (File Upload)dropzone-tanstack | Supabase UI Library | Components | Unverified | 4 deps · 4 files |
