Skip to content

Commit

Permalink
tldraw/assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kolibril13 committed Jan 31, 2024
1 parent feb0cc5 commit 1616d50
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@tldraw/assets": "^2.0.0-beta.2",
"@tldraw/tldraw": "^2.0.0-beta.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
8 changes: 6 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// this was installed with `npm i @tldraw/[email protected]`

import { Tldraw } from "@tldraw/tldraw";
import { getAssetUrls } from "@tldraw/assets/selfHosted";

// based on https://discord.com/channels/859816885297741824/1197142604106698933/1202273417357692950
import "@tldraw/tldraw/tldraw.css";

const assetUrls = getAssetUrls();

export default function App() {
const assetUrls = "/public"
return (
<div
style={{
Expand All @@ -19,4 +23,4 @@ export default function App() {
</div>
</div>
);
}
}

0 comments on commit 1616d50

Please sign in to comment.