mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-07-14 17:49:20 +02:00
23 lines
392 B
PHP
23 lines
392 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace App\Views\Components\Forms;
|
||
|
|
||
|
class Helper extends FormComponent
|
||
|
{
|
||
|
/**
|
||
|
* @var "default"|"error"
|
||
|
*/
|
||
|
protected string $type = 'default';
|
||
|
|
||
|
public function render(): string
|
||
|
{
|
||
|
$class = 'text-gray-600';
|
||
|
|
||
|
return <<<HTML
|
||
|
<small class="{$class} {$this->class}">{$this->slot}</small>
|
||
|
HTML;
|
||
|
}
|
||
|
}
|