--- title: Whitespace layout: component.html ---
Almost any component requires some whitespace either inside itself, or around it. We added a bunch of helper classes to keep spacing consistent.
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 |
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 |