# Customization

**Create the component's folder**

The user components of email editor is present inside email-editor/app/src/core/design/components/userComponents . The first step is to create your own component's folder inside it.

![](https://429898095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSvrEB1jaC7zXaz1bZmg1%2Fuploads%2FByxoLqbAxs7qNm42oqoC%2FScreenshot%20\(106\).png?alt=media\&token=ec1521ec-adc7-4be4-8b69-2f8c9a0bae68)

**Adding YourComponent.js and YourComponentSettings.js**

The folder consists of two main files. The first file contains the component that will be displayed in your editor and the second one contains default settings and component's settings that will let you change the size, color, background, margin, padding etc.

**Add the component's settings**

In YourComponentSettings.js add all the properties you want to have. You can take help from our custom accordions present in SettingsUtils.js. It contains built in accordions for different properties like size, alignment, margin, padding, etc. Import the default settings and component's settings to YourComponent.js where you can apply the default settings to your component.

**Import your component**&#x20;

Import the component to ToolBox.js\[email-editor/app/src/core/design/utils/ToolBox.js]. Add an icon of your choice so it creates a new node with your component on click.

![Icons for user components](https://429898095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSvrEB1jaC7zXaz1bZmg1%2Fuploads%2FwjXm5xQefhBJUk8cC1ik%2FScreenshot%20\(104\).png?alt=media\&token=438c7e7f-1bf9-473c-962b-00973e0f5a18)

Import it to EmailEditor.js to finally render the component on load.

**Include it in the server**

In order to view your component in preview dialog, you have to include it in the server. Create YourComponent folder inside email-editor/server/main/exportComponents. Create YourComponentExport.js, import it in index.js and craftNodesProcessor.js. Restart your server and run the app. You can now use your own component!!&#x20;
