22 lines
405 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace App\Views\Components\Forms;
use ViewComponents\Component;
class Helper extends Component
{
// TODO: add type with error and show errors inline
public function render(): string
{
$this->mergeClass('text-skin-muted');
return <<<HTML
<small {$this->getStringifiedAttributes()}>{$this->slot}</small>
HTML;
}
}