DEV Community

Alex Spinov
Alex Spinov

Posted on

Tldraw Has a Free Drawing Library — Embed a Whiteboard in Any React App

Tldraw is a React component that gives you a fully featured whiteboard in your app.

What You Get for Free

  • Full whiteboard — draw, type, add shapes, arrows, sticky notes
  • React component<Tldraw /> and you're done
  • Real-time collaboration — Yjs-based multiplayer
  • Custom shapes — define your own tools and shapes
  • Persistence — save/load documents as JSON
  • Export — PNG, SVG, JSON
  • Dark mode — built-in theme support
  • Touch & pen — pressure sensitivity, palm rejection
  • Infinite canvas — zoom, pan, navigate
  • MIT license — use commercially

Quick Start

npm install tldraw
Enter fullscreen mode Exit fullscreen mode
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'

function App() {
  return <div style={{ width: '100vw', height: '100vh' }}>
    <Tldraw />
  </div>
}
Enter fullscreen mode Exit fullscreen mode

Why Developers Embed It

Building a whiteboard from scratch takes months:

  • One component — full whiteboard in 3 lines of code
  • Customizable — add domain-specific shapes and tools
  • Collaboration — multiplayer out of the box
  • Production-ready — used by thousands of apps

A product team needed annotation features for their design review tool. Building from scratch was quoted at 2 months. They embedded Tldraw — full whiteboard with collaboration in a single afternoon.


Need Custom Data Solutions?

I build production-grade scrapers and data pipelines for startups, agencies, and research teams.

Browse 88+ ready-made scrapers on Apify → — Reddit, HN, LinkedIn, Google, Amazon, and more.

Custom project? Email me: spinov001@gmail.com — fast turnaround, fair pricing.

Top comments (0)