Skip to content

Spacer

The Spacer component adds vertical space between two elements. Pick the amount with the size prop, which maps to the design system’s spacing scale.

Installation

import { Spacer } from '@harnessio/ui/components'
//...
return (
<>
<SomeComponent />
<Spacer size={4} />
<SomeOtherComponent />
</>
)