src/Icon.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Atk4\Ui;

class Icon extends View
{
    public $defaultTemplate = 'icon.html';

    public $content = 'circle help';

    #[\Override]
    protected function renderView(): void
    {
        $this->addClass($this->content . ' icon');
        $this->content = null;

        parent::renderView();
    }
}