@mocanvas/editor · function

useAssetUrls

declare function useAssetUrls(): TLAssetUrls

The asset urls the host configured. Empty outside a provider — a component that needs a file should fall back to its own default rather than fail, because most mounts configure nothing at all.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.