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

Examples

Set Alert element display using fluent interface

use function Thermage\alert;
use function Thermage\render;

// ...

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

Set Alert element display using magic method fluent interface

use function Thermage\alert;
use function Thermage\render;

// ...

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

Set Alert element width using magic classes pipeline

use function Thermage\alert;
use function Thermage\render;

// ...

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

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