Sanity Library Reference Docs
    Preparing search index...

    Interface AssetSourceComponentProps

    interface AssetSourceComponentProps {
        accept: string;
        action?: "select" | "upload";
        assetSource: AssetSource;
        assetType?: "image" | "file" | "sanity.video";
        dialogHeaderTitle?: ReactNode;
        onClose: () => void;
        onSelect: (assetFromSource: AssetFromSource[]) => void;
        schemaType?: FileSchemaType | ImageSchemaType;
        selectedAssets: Asset[];
        selectionType: "single";
        uploader?: AssetSourceUploader;
    }
    Index

    Properties

    accept: string
    action?: "select" | "upload"
    assetSource: AssetSource
    assetType?: "image" | "file" | "sanity.video"
    dialogHeaderTitle?: ReactNode
    onClose: () => void
    onSelect: (assetFromSource: AssetFromSource[]) => void
    selectedAssets: Asset[]
    selectionType: "single"