![]() This PR includes a "soft preload" feature for icons, where icons will be loaded when the canvas first mounts. The component will not wait for icons to finish loading before showing the editor, but this should help with "pop in" on menu icons. ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `improvement` — Improving existing features ### Test Plan 1. Load the component 2. After load, open a menu for the first time 3. The icons should immediately be visible ### Release Notes - Improve icon preloading |
||
---|---|---|
.. | ||
api | ||
scripts | ||
src | ||
CHANGELOG.md | ||
LICENSE.md | ||
README.md | ||
api-extractor.json | ||
api-report.md | ||
package.json | ||
setupTests.js | ||
tsconfig.json |
README.md
![tldraw](https://github.com/tldraw/tldraw/raw/main/assets/github-hero-light.png)
tldraw
This package contains the source code for the tldraw library. Learn more at our docs site: tldraw.dev.
Installation
Install the tldraw
package.
npm i tldraw
Then start the local development server.
npm run dev
Usage
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
export default function () {
return <Tldraw />
}
Visit or docs site to learn more. See our examples folder for more examples.
Community
Have questions, comments or feedback? Join our discord or start a discussion.
Distributions
You can find tldraw on npm here.
Contribution
Please see our contributing guide. Found a bug? Please submit an issue.
License
The tldraw source code and its distributions are provided under the tldraw license. This license does not permit commercial use.
If you wish to use this project in commercial product, you need to purchase a commercial license. Please contact us at sales@tldraw.com for more inforion about obtaining a commercial license.
Trademarks
Copyright (c) 2024-present tldraw Inc. The tldraw name and logo are trademarks of tldraw. Please see our trademark guidelines for info on acceptable usage.
Contact
Find us on Twitter at @tldraw or email sales@tldraw.com. You can also join our discord for quick help and support.