Sanity Library Reference Docs
Preparing search index...
sanity
index
AssetSourceComponentProps
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
action?
asset
Source
asset
Type?
dialog
Header
Title?
on
Close
on
Select
schema
Type?
selected
Assets
selection
Type
uploader?
Properties
accept
accept
:
string
Optional
action
action
?:
"select"
|
"upload"
asset
Source
assetSource
:
AssetSource
Optional
asset
Type
assetType
?:
"image"
|
"file"
|
"sanity.video"
Optional
dialog
Header
Title
dialogHeaderTitle
?:
ReactNode
on
Close
onClose
:
()
=>
void
on
Select
onSelect
:
(
assetFromSource
:
AssetFromSource
[]
)
=>
void
Optional
schema
Type
schemaType
?:
FileSchemaType
|
ImageSchemaType
selected
Assets
selectedAssets
:
Asset
[]
selection
Type
selectionType
:
"single"
Optional
Beta
uploader
uploader
?:
AssetSourceUploader
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
accept
action
asset
Source
asset
Type
dialog
Header
Title
on
Close
on
Select
schema
Type
selected
Assets
selection
Type
uploader
Sanity Library Reference Docs
Loading...