BUNDLEWARE

useAsset

Hook

A file from the toolbar's assets/ folder, as context.asset reads it: undefined until it has arrived.

SignatureuseAsset(path: string, as?: AssetOptions['as']): string | undefined
Take it fromconst { useAsset } = Bundleware;

Parameters

ParameterTypeDescription
pathstring
asAssetOptions['as']Optional.

Return Value

Typestring | undefined

Availability

Bundleware1.0.1, build 2026.12.02