radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.97k stars 838 forks source link

[New Primitive] `LiveCursor` #1323

Open jjenzz opened 2 years ago

jjenzz commented 2 years ago

I'm not sure what the primitive would be called but LiveCursor paints a more accurate picture in my mind of the idea that originated here https://github.com/radix-ui/primitives/discussions/1090.

Obviously this pattern is likely difficult to make readable by SRs and may even be an a11y failure so perhaps it can follow a similar approach to HoverCard in that it would be for sighted users only.

Examples in the wild:

lewisvrobinson commented 2 years ago

Chris from Liveblocks recently posted a great article on animating live cursors and dealing with latency.

https://liveblocks.io/blog/how-to-animate-multiplayer-cursors

Could come in handy!

franklinjavier commented 1 year ago

https://github.com/radix-ui/primitives/discussions/1090#discussioncomment-6620771