
Fixes dead links in the Assets documentation page and replaces with working links. Fixes #2566 . ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [x] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [ ] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan None required. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - N/A Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
26 lines
1.1 KiB
Text
26 lines
1.1 KiB
Text
---
|
|
title: Assets
|
|
status: published
|
|
author: steveruizok
|
|
date: 6/9/2023
|
|
order: 3
|
|
keywords:
|
|
- image
|
|
- video
|
|
- file
|
|
- images
|
|
- videos
|
|
- files
|
|
---
|
|
|
|
Assets are dynamic records that store data about a shared asset. For example, our image and video shapes refer to assets rather than embedding their source files directly. This is essential because, by default, these asset sources are stored in base64 data.
|
|
|
|
You can use assets for any shared piece of information, however they're best used for images, videos, and files.
|
|
|
|
## Examples
|
|
|
|
While we're working on docs for this part of the project, please refer to the examples below:
|
|
|
|
- [Using images hosted](https://github.com/tldraw/tldraw/blob/main/apps/examples/src/examples/hosted-images/HostedImagesExample.tsx)
|
|
- [Customizing the default asset options](https://github.com/tldraw/tldraw/blob/main/apps/examples/src/examples/asset-props/AssetPropsExample.tsx)
|
|
- [Handling pasted / dropped external content](https://github.com/tldraw/tldraw/blob/main/apps/examples/src/examples/external-content-sources/ExternalContentSourcesExample.tsx)
|