Block
The Block component is a simple spacer tool. It allows sibling HTML elements to have a consistent margin between them.
How it works #
The Block component is a simple layout utility that provides vertical spacing between sibling elements. It helps organize content by visually separating sections or groups of content with consistent margins.
How to use:
This demo illustrates how to use the
How to use:
- Wrap your content inside the
<Block>component to create a visually separated section. - Place multiple
Blockcomponents as siblings to automatically add spacing between them. - Each
Blockwill apply margin at the bottom, except for the last one, ensuring clean separation without extra space at the end.
Block component to structure your page with clear, consistent spacing between content sections.
This text is within a block.
This text is within a second block. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.
This text is within a third block. This block has no margin at the bottom.
<Block>
This text is within a <strong>block</strong>.
</Block>
<Block>
This text is within a <strong>second block</strong>. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.
</Block>
<Block>
This text is within a <strong>third block</strong>. This block has no margin at the bottom.
</Block>