kopia lustrzana https://github.com/Tldraw/Tldraw
19 wiersze
778 B
Plaintext
19 wiersze
778 B
Plaintext
|
---
|
||
|
title: Installation
|
||
|
status: published
|
||
|
author: steveruizok
|
||
|
date: 3/22/2023
|
||
|
order: 1
|
||
|
---
|
||
|
|
||
|
First, install the `@tldraw/tldraw` package using `@alpha` for the **latest alpha release**. It also has peer dependencies on `signia` and `signia-react` which you will need to install at the same time.
|
||
|
|
||
|
```bash
|
||
|
yarn add @tldraw/tldraw@alpha signia signia-react
|
||
|
# or
|
||
|
npm install @tldraw/tldraw@alpha signia signia-react
|
||
|
```
|
||
|
|
||
|
Next, copy the following folders: `icons`, `embed-icons`, `fonts`, and `translations` from the [tldraw-examples](https://github.com/tldraw/tldraw-examples/tree/main/public) repository. Put them in your project's public path so that, e.g. `your-website.com/icons` points to the icons folder you copied. (Ability to customize the base asset URL is coming soon!)
|
||
|
|