useAsset
HookA file from the toolbar's assets/ folder, as context.asset reads it: undefined until it has arrived.
| Signature | useAsset(path: string, as?: AssetOptions['as']): string | undefined |
|---|---|
| Take it from | const { useAsset } = Bundleware; |
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | |
as | AssetOptions['as'] | Optional. |
Return Value
| Type | string | undefined |
|---|
Availability
| Bundleware | 1.0.1, build 2026.12.02 |
|---|