---
title: Import a custom component
project: UI Builder
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/uibuilder/1-0/guides/import-custom-component/
updated: 2026-11-19T08:01:44.486Z
---

# Import a custom component

> Add a component from an editor.html address, a component list or an exported component code.

**Import custom** adds a component that is not in the library, for example one made by your team.

## Import a component

**1.** Select **Import components** at the top of the component list, and then **Import custom**.

**2.** In **URL address**, enter one of these:

- the address of a component's `editor.html` file, for example `https://www.example.com/components/greeting/editor.html`;
- the address of a JSON file with a list of `editor.html` addresses, to import them all at once;
- an exported component code that starts with `uibuilder://component`.

![The Import UI component form](/files/JapWsu2eN61f.webp)

**3.** Select **IMPORT**.

The editor shows **The component has been imported successfully.** and the component appears in the list, in its own group. If the address does not hold a component, the editor shows **Invalid component content**.

A file on another server must allow requests from the address of UI Builder (CORS).

## Import from a file

You can also drop a component's `.html` file from your computer on the editor. The component appears in the list.

## Where to get exported codes

**Export** in the component list menu and **Export** in **Export to component** copy a `uibuilder://component` code. See [Manage the component list](../component-list/).
