'boolean', ]; protected string $for; protected string $hint = ''; protected bool $isOptional = false; #[Override] 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(); $this->attributes['for'] = $this->for; return <<getStringifiedAttributes()}>{$this->slot}{$optionalText}{$hint} HTML; } }