--- title: Whitespace layout: component.html ---

Whitespace

Almost any component requires some whitespace either inside itself, or around it. We added a bunch of helper classes to keep spacing consistent.

Padding

Give containers some space on the inside.

Class Result
.padding-[xs, sm, lg, xl] Adds padding on all sides
.padding-vertical-[xs, sm, lg, xl] Adds padding on top and bottom sides
.padding-horizontal-[xs, sm, lg, xl] Adds padding on left and right sides
.padding-[top, right, bottom, left]-[xs, sm, lg, xl] Adds padding on the specified side only
Extra small padding
Small padding
Padding
Large padding
Extra large padding

Margin

Give containers some space on the outside.

Class Result
.margin-[xs, sm, lg, xl] Adds margin on all sides
.margin-vertical-[xs, sm, lg, xl] Adds margin on top and bottom sides
.margin-horizontal-[xs, sm, lg, xl] Adds margin on left and right sides
.margin-[top, right, bottom, left]-[xs, sm, lg, xl] Adds margin on the specified side only
Extra small margin
Small margin
Margin
Large margin
Extra large margin