# Margin Property
Controls margin for elements. Supports scaled values, custom values, directional control, and negative margins.
```jsx featured
Margin of 4
```
[View Source](https://github.com/LocusInc/locus-ui/tree/main/packages/locus-ui/src/props)
## Examples
### Margin Scale
The `m` prop accepts scale values `0`–`8` and `auto`.
```jsx
{[0, 1, 2, 3, 4, 5, 6, 8, "auto"].map((num) => (
{num}
))}
```
### Negative Margins
Margin supports negative values for overlapping layouts.
```jsx
{[-8, -6, -5, -4, -3, -2, -1].map((num) => (
{num}
))}
```
### Margin Directions
Use `m`, `mt`, `mb`, `ml`, `mr`, `mx`, and `my` for directional margin control.
```jsx
m = 2
mt = 2
mb = 2
ml = 2
mr = 2
mx = 2
my = 2
```
### Custom Margin
Margin also accepts custom CSS values.
```jsx
m = 17px
```