How to split the horizontal space in two with the grid component ?

Undraw Animating

How to split the horizontal space in two with the grid component ?

About

This howto shows you how to split the horizontal space in two with the grid component.

The grid component splits the horizontal space across its children.

By default, it will do it across:

Using two children box, the grid will split the horizontal space:

  • in two contingent box from a small screen and above
  • in two stacked box for a mobile screen

Example:

<grid>
        <box>
            <icon name="bs:inboxes-fill" width="3rem"/>
            == Lorem Ipsum 1 ==
            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
        </box>   
        <box>
            <icon name="bs:inboxes-fill" width="3rem"/>
            == Lorem Ipsum 2 ==
            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
         </box>  
</grid>
  • Output:
Lorem Ipsum 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Lorem Ipsum 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Task Runner