Yassine Doghri 11ccd0ebe7 feat(plugins): add group field type + multiple option to render field arrays
- update docs
- render hint and helper options for all fields
- replace option's hint with
description
2024-12-10 15:57:06 +00:00

24 lines
431 B
PHP

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