funkwhale/front/ui-docs/components/ui/layout/spacer.md

1.1 KiB

Spacer

Add a 16px gap between adjacent items.

Without spacer:
<Alert color="green">A</Alert>
<Alert color="red">B</Alert>

A B

With spacer:
<Alert color="green">A</Alert>
<Spacer/>
<Alert color="red">B</Alert>
A B
Spacers can also be added for horizontal space:
<Layout flex>
<Alert color="blue">A</Alert>
<Alert color="green">A</Alert>
<Spacer/>
<Alert color="red">B</Alert>
</Layout>
A A B