mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-17 15:23:22 +02:00
23 lines
409 B
PHP
23 lines
409 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 id="{$this->id}" class="{$class} {$this->class}">{$this->slot}</small>
|
|
HTML;
|
|
}
|
|
}
|