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

Examples

Set Heading text align center using fluent interface

use function Thermage\heading;
use function Thermage\render;

// ...

render (
  heading('Stay RAD!')->textAlign('center')
);

// or with magic method
render (
  heading('Stay RAD!')->textAlignCenter()
);

Set Heading text align center using magic classes pipeline

use function Thermage\heading;
use function Thermage\render;

// ...

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

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