Skip to main content
Version: 2.1.4

IImagePicker

3p-core v2.1.4


3p-core / IImagePicker

Interface: IImagePicker

Props for the ImagePicker component.

Properties

PropertyTypeDescription
className?stringOptional CSS class names.
imageFieldValueanyThe current image field value (stringified or parsed object) from the SharePoint list item.
inline?booleanIf true, the image picker is rendered inline (horizontal layout).
label?stringOptional label shown above the image selector.
loading?booleanWhether to show a loading spinner.
onFileSelected(file) => anyCallback triggered when a file is selected.
readOnly?booleanWhen true, disables the image selection interaction.
spSPFIInstance of PnP JS SPFI used to interact with SharePoint.
style?anyOptional style overrides.