context.asset
A file from the toolbar's own assets/ folder, by its path there, such as 'lottery/powerball/01.webp': as a data: URL (the default) for an image, a sound or a style, as 'text', or as 'base64' for music.readMidi and FontFace.
assets/
'lottery/powerball/01.webp'
data:
'text'
'base64'
music.readMidi
FontFace
context.asset(path: string, options?: AssetOptions): Promise<string>
const { asset } = useToolbar();
path
string
options
AssetOptions
Promise<string>