Skip to main content
LocalTapiola Turva

Spacer ready

Spacer component is used to give additional white space between two components in an interface.

You can customize the size and direction of the space with the provided properties.

Open in new window
<duet-spacer size="x-large" direction="vertical"></duet-spacer>

Properties #

directiondirectionDirection of the space added. Can be one of: "vertical", "horizontal".string"vertical"
sizesizeSize variation of the spacer. Can be any of the spacing tokens.string"medium"


For integration, events and theming guidelines, please see Using Components. That page explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.