README.md

July 10, 2024 ยท View on GitHub

Demo (Documentation)

<IntlProvider locale="en">
    <ContentPicker
        features={FEATURES}
        rootFolderId={FOLDER_ID}
        token={TOKEN}
        {...PROPS}
    />
</IntlProvider>

Screenshot

---

Props

PropTypeDefaultDescription
token*stringSee the developer docs.
autoFocusbooleanSee the developer docs.
cancelButtonLabelstringSee the developer docs.
canCreateNewFolderbooleantrueSee the developer docs.
canSetShareAccessbooleantrueSee the developer docs.
canUploadbooleantrueSee the developer docs.
chooseButtonLabelstringSee the developer docs.
clearSelectedItemsOnNavigationbooleanfalseIndicates whether or not selected state should be cleared after every navigation.
contentUploaderPropsObject{}Props to be forwarded to the ContentUploader UI Element. See the developer docs.
currentFolderIdstringThe current folder shown for the content picker. This should be a sub folder to the root folder.
defaultViewstringfilesSee the developer docs.
extensionsArray<string>[]See the developer docs.
initialPagenumber1See the developer docs.
initialPageSizenumber50See the developer docs.
isHeaderLogoVisiblebooleantrueIndicates whether or not the Logo in the Header is shown.
isPaginationVisiblebooleantrueIndicates whether or not the pagination buttons in the Footer are shown.
isTouchbooleanSee the developer docs.
languagestringSee the Internationalization section
logoUrlstringSee the developer docs.
maxSelectablenumberInfinitySee the developer docs.
messagesMap<string, string>See the Internationalization section
onCancelfunctionCallback function for when the cancel button is pressed.
onChoosefunctionCallback function for when the choose button is pressed.
requestInterceptorfunctionSee the developer docs.
renderCustomActionButtonsfunctionRender prop that renders custom action buttons in the footer.
responseInterceptorfunctionSee the developer docs.
rootFolderIdstring0The root folder for the content picker.
sharedLinkstringSee the developer docs.
sharedLinkPasswordstringSee the developer docs.
showSelectedButtonbooleantrueIndicates whether or not the selected button is shown.
sortBystringnameSee the developer docs.
sortDirectionstringascSee the developer docs.
typestringfile, web_linkIndicates which type of items can be picked. Should be a comma seperated combination of file, folder or web_link.

Keyboard Shortcuts

See the developer docs.