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

Examples

Set Paragraph element display using fluent interface

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!')->d('block')
);

Set Paragraph element display using magic method fluent interface

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!')->dBlock()
);

Set Paragraph element width using magic classes pipeline

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!', 'd-block bg-red')
);
Terminal
$ php thermage.php
Stay RAD!

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

Getting Started

Methods