UseImageOrVideoAssetOptions

See source code
Table of contents

Options for useImageOrVideoAsset.

interface UseImageOrVideoAssetOptions {}

Properties

assetId

The asset ID you want a URL for.

assetId: null | TLAssetId

shapeId

optional

The shape the asset is being used for. We won't update the resolved URL whilst the shape is off-screen.

shapeId?: TLShapeId

width

The width at which the asset will be displayed, in shape-space pixels.

width: number

Prev
ToolbarItemProps
Next
BoxModel