> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize Logo

**REQUIRED GUIDES**

Each of the Box UI Elements allow for specifying a custom logo to place in the
top-left corner of the embedded container.

![Custom logo](https://mintcdn.com/box/_tECS-SYBYV9K-kZ/images/guides/embed/ui-elements/elements-logo.png?fit=max\&auto=format\&n=_tECS-SYBYV9K-kZ\&q=85\&s=02db9226715134e55c4ff10bcc5fb5bb)

By default, each of the UI Elements uses a generic placeholder as a logo. This
is meant to be replaced by either a Box logo or a custom logo, such as a
company's logo.

To add a logo to a UI Element, supply a URL for a logo as an option in the
Javascript setup code. The following is an example of how to do this with the
Content Preview UI Element.

```js theme={null}
var preview = new Box.Preview();
preview.show(fileId, accessToken, {
    container: '.preview-container',
    sharedLink: 'https://app.box.com/v/foo',
    sharedLinkPassword: 'bar',
    collection: [FILE_ID, '123', '234', ...],
    header: 'light',
    logoUrl: 'https://developer.box.com/images/guides/embed/ui-elements/elements-logo.png',
    showAnnotations: true,
    showDownload: true
});
```

> [!NOTE]
>
> **Box Logo**
>
> To present the Box logo in a UI Element, specify the string `box` as the
> `logoURL` option.

## Image size

Image files will be fitted to a maximum height of 32 pixels and a maximum width
of 80 pixels. Larger images will be shrunk to fit these dimensions.

**RELATED GUIDES**
