Bynder UI components

Bynder UI components to support frontend developers on building their web applications.

Compact View

See Compact View in action

Bynder Compact View is the easiest way to get assets from Bynder into your web application. It's a component built with ReasonReact that allows developers to add support for selecting and importing assets from a Bynder Asset Bank without having to worry about the intricacies related to building a file picker: UI design, authentication, API requests, etc. This component fetches the assets and their metadata through the Bynder API and renders it by replicating Bynder look & feel. Users can query, filter (by smartfilters, metaproperties, tags, keyword, and existing collections), sort, and select assets to then import them into another application.

Compact View works with all methods of authentication that your Bynder portal supports. 

Compact View on Bynder Knowledge Base


Assets marked as "Limited" are not available for selection through Compact View.


How it works

To setup the Bynder Compact View in your web app, add the following line to your page:

<script src=""></script>

After it you can trigger/configure the Compact View through its new API:{ onSuccess: function (assets) { /* Do something with given asset array */ }, defaultDomain: "", /* ... other options ... */ })

Information returned in each JSON object of the  assets array:

{ databaseId: "00000000-0000-0000-0000000000000000", derivatives: { thumbnail: "___URL_TO_BYNDER_CDN___", webImage: "___URL_TO_BYNDER_CDN___" } id: "KEFzc2V0X2lkIDJBQzc5MUE2LTJDN0MtNDA5My1BNUUzMUM5MzU1NkFDOEYwKQ==", name: "image name", originalUrl: null, type: "IMAGE", url: "", __typename: "Image" }

The optional options object accepts the following attributes (which are also all optional):

AttributeDescriptionPossible ValuesDefault Value
onSuccessComma separated list of asset types to displayfunction (assets: array(asset)): voidconsole.log
containerA DOM element to act as the container for Compact View (disables modal)Dom.HTMLElement instanceNone
portalPortal config object{url: string, editable: bool} None
portal.urlSet a default portal URL for the Compact View login screenA string containing Bynder portal URLNone
portal.editableIf false, limits Compact View to a single portaltruefalsetrue
defaultSearchTermSet the initial value for search term"Keyword" None
languageSet language for the Compact View"en_US", "nl_NL", "de_DE", "fr_FR", "es_ES""en_US"
modeSet the Compact View to allow multiple or single asset selection"SingleSelect" or "MultiSelect""false"
themeA theme object for customizing Compact View look and feelObject (see below for recognized keys)None
assetTypesAn array of strings for limiting allowed asset typesimage, video, document, audio["image", "audio", "video", "document"]
assetFieldSelectionA multiline string containing desired asset fields (see below)String
" \
databaseId \
name \
originalUrl \
type \
url \
derivatives { \
  thumbnail \
  webImage \
} \
... on Video { \
  previewUrls \
} \

Recognized keys for theme:

type theme = { colorPrimary?: CSSColor; colorButtonPrimary?: CSSColor; colorButtonPrimaryLabel?: CSSColor; colorButtonPrimaryActive?: CSSColor; colorButtonPrimaryHover?: CSSColor; colorButtonPrimaryHoverLabel?: CSSColor; };

Asset fields accepted by assetFieldSelection:

interface Asset {
  """Asset ID."""
  id: ID!

  """Asset database Id."""
  databaseId: String!

  """Asset name."""
  name: String!

  """Asset description."""
  description: String

  """Asset type. Possible values are: IMAGE, DOCUMENT, AUDIO and VIDEO."""
  type: AssetType!

  """The HTTP URL for this asset."""
  url: URI!

  """Date created."""
  createdAt: DateTime!

  """User who created the asset."""
  createdBy: User

  """Date published."""
  publishedAt: DateTime

  """Date updated."""
  updatedAt: DateTime

  """Size of the asset file in bytes."""
  fileSize: Int!

  """Height of the original asset file."""
  height: Int!

  """Width of the original asset file."""
  width: Int!

  """Asset orientation. Possible values are: PORTRAIT, LANDSCAPE, SQUARE."""
  orientation: Orientation!

  Whether or not this asset is archived. 
  Knowledge base entry
  isArchived: Boolean!

  """Brand ID."""
  brandId: String

  """Urls for different sizes of thumbnail images generated for the asset."""
  derivatives: AssetDerivatives!

  """Copyright of the asset."""
  copyright: String

  Extensions of the asset file. This can have more than one value in case of a derivative with different extensions.
  extensions: [String!]!

  Whether or not this asset is marked as Limited Use. 
  Knowledge base entry
  isLimitedUse: Boolean!

  Whether or not this asset is marked as Public. 
  Knowledge base entry
  isPublic: Boolean!

  Whether or not this asset has a watermark. 
  Knowledge base entry
  isWatermarked: Boolean!

  Tags of the asset. 
  Knowledge base entry
  tags: [String!]!

  """Asset original URL."""
  originalUrl: URI

  Metaproperties of the asset
  Knowledge base entry
  metaproperties: MetapropertyConnection!

Example usage

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <title>Bynder Compact View</title>
    <link href=data:, rel=icon>
    <div id="importedAssets"></div>
    <script src=""></script>
       language: "en_US",
       theme: {
         colorButtonPrimary: "#3380FF"
       defaultSearchTerm: "Amsterdam",
       mode: "SingleSelect",
       onSuccess: function(assets) {
         var importedAssetsContainer = document.getElementById(
         importedAssetsContainer.innerHTML = "";
         assets.forEach(function(asset) {
           switch (asset.type) {
             case "AUDIO":
             case "DOCUMENT":
             case "IMAGE":
               importedAssetsContainer.innerHTML +=
                 "<img src=" + asset.derivatives.webImage + " />";
             case "VIDEO":
               importedAssetsContainer.innerHTML +=
                 '<video width="640" height="480" controls>' +
                 '<source src="' +
                 asset.previewUrls[0] +
                 '" type="video/webm">' +

Once the assets are selected, they are submitted by the Compact View using CustomEvents. They will be returned in an array of objects that can be handled in your page. In the example above we use a div with id importedAssets that will be filled with the assets urls. This response array contains all of the information about the assets from the Bynder portal, including all public derivatives.

List of available asset derivatives can be retrieved by the API call:


For a working demo of the Compact View latest version check:




New Features:

  • New design and improved UX to close the gap to Bynder's asset bank
  • New API to configure and initialize the Compact View according to your use case
  • Bynder domain URL validation in the Compact View landing page
  • Extended system language support for: English UK/US, Spanish, German, Dutch, French
  • Custom Smartfilter, metaproperty and metapropertyoption translations
  • Configure the look & feel through the new theme attribute
  • New attribute container to allow loading the Compact View inside any DOM element in your page
  • Simplified Compact View attributes



New Features:

  • New attribute data-shadowDom for toggling the usage of shadow DOM
  • New attribute data-modal for displaying the Compact View in a modal rather than in the parent element



New Features:

  • Added close button when autoload is not enabled
  • Improved authorisation error handling
  • Improved performance for large asset banks
  • Decreased bundle size by ~200kB - the most compact version yet!



New Features:

  • New attribute data-searchTerm for setting the initial search value



New Features:

  • New look and feel to more closely match Flagship experience
  • Added document and audio support (now supports all asset types!)
  • Added Smart Filter support
  • Added Advanced Filter
  • Added ability to open asset detail screen in new tab
  • Front end written completely in ReasonML
  • Back end written completely in OCaml



New Features:

  • Added video support
  • Added support for Safari and IE11
  • Configurable as multi select or single select

© 2020 Bynder All rights reserved.