/**
 * Set alert color danger.
 *
 * @return self Returns instance of the Rule class.
 *
 * @access public
 */
public function danger(): self

Examples

Set Alert element type danger using fluent interface

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

// ...

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

Set Alert element type danger using magic classes pipeline

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

// ...

render( 
  alert('Stay RAD!', 'danger')
);
Terminal
$ php thermage.php
Stay RAD!