/**
 * Set Span element display style.
 *
 * @param string $value Span display value.
 *
 * @return self Returns instance of the Span element class.
 *
 * @access public
 */
public function d(string $value): self

Examples

Set Span element display using magic method fluent interface

use function Thermage\span;
use function Thermage\render;

// ...

render (
  span('Stay RAD!')
    ->px20()
    ->mx20()
    ->colorGreen()
    ->bgPurple()
    ->bold()
    ->dBlock()
);

Set Span element width using magic classes pipeline

use function Thermage\span;
use function Thermage\render;

// ...

render( 
  span('Stay RAD!', 'px-20 mx-20 color-green bg-purple bold d-block')
);
Terminal
$ php thermage.php
Stay RAD!

By default Span element display state is inline, but you can change it to block or none.