The Box Content Explorer UI Element allows developers to embed a folder view of
content stored on Box in their desktop or mobile web application. The library
fetches information about a specified folder through the Box API and then
renders the content in a folder view, similar to the main Box web application.
Users can then navigate through the folder hierarchy and perform file operations
like rename, delete, and share.
Content Explorer comes with a that uses
metadata query to find files and folders based
on their metadata. The data is then displayed in the embedded view.
Installation
Box UI elements
either through NPM or the Box CDN.
Authentication
The UI Elements are designed in an authentication agnostic way so whether
you are using UI Elements for users who have Box accounts (Managed Users) or
non-Box accounts (App Users), UI Elements should work out of the box. The
reason for this is that UI Elements only expect a “token” to be passed in for
authentication, and Box provides two different ways to generate tokens - OAuth
and JWT.
Compare authentication methods
Sample HTML
Demo
API
Parameters
Options
Events
Keyboard Shortcuts
When the item grid has focus, either manually by clicking on it or
programmatically via javascript or via the above mentioned autoFocus prop, the
following keyboard shortcuts will work if their corresponding operations are
applicable and allowed.
Scopes
If your application requires the end user to only be able to access a subset of
the Content Explorer functionality, you can use to
appropriately downscope the Access Token to a resulting token that has the
desired set of permissions, and can thus, be securely passed to the end user
client initializing the Content Explorer.
Below are a set of UI Element-specific scopes to go alongside Downscoping. These
allow developers to enable/disable UI controls on the Content Explorer by
configuring the appropriate scopes on the downscoped token. To learn
more, see .
Base Scope
Feature Scopes
Sample Scenarios
Custom actions
You can expand the actions in the More Options menu for files and folders in Content Explorer and Content Picker. Your custom options show when a user clicks the ellipsis button.
To customize the More Options menu, pass an array of custom actions to itemActions.
The array can include multiple actions. The action object should include the label and onAction callback functions. You can filter the custom actions to appear only on a specific item type, by passing the file or folder value. The filter value is used for advanced filtering, for example by a specific file extension:
See the implemented examples in CodePen:
Last modified on September 10, 2026