Simple example of usage Div element with fluent interface.

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div('Stay RAD!')
    ->pl5()
    ->colorGreen()
    ->bgPurple()
    ->bold()
);

Simple example of usage Div element with magic classes pipeline.

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div('Stay RAD!', 'pl-5 color-green bg-purple bold')
);
Terminal
$ php thermage.php
Stay RAD!

Simple example of usage Div element as container for nested Div elements.

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div(
    div('Stay', 'pl-5 color-green bg-purple bold').
    div('RAD!', 'pl-5 color-green bg-purple bold')
  )->clearfix()
);
Terminal
$ php thermage.php
Stay RAD!
Stay RAD!