Return an object in the format classnames expects for spacing classes built by using a passed in string or array of strings defining spaces at breakpoints.

Parameters:
NameTypeDescription
propstring | number | Array

The spacing information matching units in the design system.

classnamestring

The root classname to apply to the spacing classes.

Since
  • 1.4.2
Returns:

The spacing classes object.

Type: 
object