'boolean', ]; protected string $for; protected string $hint = ''; protected bool $isOptional = false; public function render(): string { $this->mergeClass('text-sm font-semibold'); $optionalText = $this->isOptional ? '(' . lang('Common.optional') . ')' : ''; $hint = $this->hint === '' ? '' : (new Hint([ 'class' => 'ml-1', 'slot' => $this->hint, ]))->render(); return <<getStringifiedAttributes()}>{$this->slot}{$optionalText}{$hint} HTML; } }