# Spacing Property Controls the overall spacing scale for elements. Supports scaled values and inheritance from parent elements. ```jsx featured Large Spacing ``` [View Source](https://github.com/LocusInc/locus-ui/tree/main/packages/locus-ui/src/props) ## Examples ### Spacing Scale The `spacing` prop sets the overall spacing scale for an element: `xs`, `sm`, `md`, `lg`, or `xl`. ```jsx {["xs", "sm", "md", "lg", "xl"].map((size) => ( {size.toUpperCase()} ))} ``` ### Spacing Inheritance Child elements use the theme spacing unless they are given `spacing="inherit"`. ```jsx Parent Box (XL Spacing, p=2, m=2) Child 1 (Inherited Spacing, p=2, m=2) Child 2 (Default Spacing, p=2, m=2) ```