---
url: /documentation/input-types/experimental/spacing.md
description: >-
  Experimental spacing input for margin and padding properties, with shorthand
  aliases such as m, mt, p, and pl.
---

# Spacing

Spacing inputs enable to get margin and padding spacings. You can define which margin- or padding-properties you wish to enable.

```js
{
  input: {
    type: 'spacing', // [!code focus:2]
    supports: ['margin', 'padding'] // or e.g. ['mt', 'mb', 'pr', 'pl']
  }
}
```

## Input Options

| Option | Values | Default | Description |
| - | - | - | - |
| `supports` | `string[]` | `['margin', 'padding']` | A list of all supported features. See table "Supported features" for details. |

## Supported features

For the supported feature you could also write one of the alias names (of course without the array).

| Feature | Aliases |
| - | - |
| `margin` | `m` |
| `margin-top` | `mt` |
| `margin-right` | `mr` |
| `margin-bottom` | `mb` |
| `margin-left` | `ml` |
| `padding` | `p` |
| `padding-top` | `pt` |
| `padding-right` | `pr` |
| `padding-bottom` | `pb` |
| `padding-left` | `pl` |
