Skip to main content

AssetPickerDialog

A dialog which allows the creation and selection of assets.

Signature
function AssetPickerDialog(props: AssetPickerDialogProps): void

Parameters

props

Props for the AssetPickerDialog component.

Signature
interface AssetPickerDialogProps {    open: boolean;    onClose: () => void;    onSelect: (assets: Asset[]) => void;    multiSelect?: boolean;    initialSelectedAssets?: Asset[];    title?: string;}

open

propertyboolean

Whether the dialog is open.

onClose

property() => void

The function to call when the dialog is closed.

onSelect

property(assets: Asset[]) => void

The function to call when assets are selected.

multiSelect

propertyboolean

Whether multiple assets can be selected.

initialSelectedAssets

propertyAsset[]

The initial assets that should be selected.

title

propertystring

The title of the dialog.

Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page