/**
 * Set Alert text align style.
 *
 * @param mixed $value Text align value.
 *
 * @return self Returns instance of the Alert class.
 *
 * @access public
 */
public function textAlign(string $value): self

Examples

Set Alert text align left using fluent interface

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

// ...

render (
  alert('Stay RAD!')->textAlign('left')
);

// or with magic method
render (
  alert('Stay RAD!')->textAlignLeft()
);

Set Alert text align left using magic classes pipeline

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

// ...

render (
  alert('Stay RAD!', 'text-align-left')
);
Terminal
$ php thermage.php
Stay RAD!

By default Alert element text align style is left, but you can change it to right or center.