About
A box is a component that permits to contain other components.
This is useful to:
- define the elements that should collapse
- or create a styled box.
Because a box is a general layout component, there is no automatic paragraph creation on a new line, you should use the text component to layout your text in a box.
Example
<box background-color="#e6b594" width="150px" align="center text-center" spacing="p-4 m-5">
A brown rectangle
</box>
where:
Output:
A brown rectangle