Logo Astro Collaborative Starter
You
Users online

Live drawing

Draw together with <LiveDrawing>, powered by tldraw

Open page in two windows

How to use

Add <LiveDrawing>. Element attributes correspond to tldraw props.

---
import LiveDrawing from 'astro-collab/LiveDrawing.astro'
---
<!-- Basic -->
<LiveDrawing />

<!-- Pass any tldraw properties -->
<LiveDrawing showMenu={false} />

A minimal working example can be found here.

Important note

All multiplayer components must be wrapped in a single LiveblocksRoom component, check the quick start guide for more info.

Components

Multiplayer cursors
<LiveCursors>
Live avatar stack
<LiveAvatars>
Live user list
<LiveUsers>
Collaborative form
<LiveForm>
Edit user form
<LiveUserForm>
Live drawing
<LiveDrawing>
Random user info
<RandomUserInfo>
Liveblocks room
<LiveblocksRoom>
@ctnicholasdev