---
title: "Property editors, MailKaro Docs"
description: "Property editors in MailKaro: the field widgets that power a custom tool's inspector. For React, Vue, Angular and plain JavaScript."
---

# Property editors

Extending

# Property editors

The field widgets that power a custom tool's inspector.

Each inspector field declares a `type` and a `key`. Built-in editors include text, number, color, toggle, dropdown/select, image, alignment, and link, so a [custom tool](https://docs.mailkaro.com/custom-tools) gets a native-feeling settings panel with no UI code.

## The field types

A field in a tool's `inspector` list is `{ key, label, type }`, where `type` is `text`, `textarea`, `url`, `color`, `number`, `select`, `image`, `file` or `toggle`. A field can also carry `options` (a list of `{ label, value }` for `select`), `min` and `max` (for `number`) and a `placeholder`.

ts

```
inspector: [
 { key: "title", label: "Title", type: "text", placeholder: "Product name" },
 { key: "size", label: "Size", type: "number", min: 10, max: 40 },
 { key: "style", label: "Style", type: "select", options: [
 { label: "Light", value: "light" }, { label: "Dark", value: "dark" },
 ] },
]
```

## Unlayer widgets and custom editors

A tool written for Unlayer keeps its widgets: `alignment` becomes a left, center or right select, `link` a URL field and `font_family` a text field. A widget whose value is an object, such as padding or border, gets no field and keeps its default. `registerPropertyEditor` is accepted so existing code runs, but it has no effect, because the editor runs in a frame and cannot draw your widget code. The whole tool object is on the [custom tools](https://docs.mailkaro.com/custom-tools) page.

Source: https://docs.mailkaro.com/property-editors
