'boolean', ]; protected string $hint = ''; protected bool $isChecked = false; #[Override] public function render(): string { $checkboxInput = form_checkbox( [ 'id' => $this->id, 'name' => $this->name, 'class' => 'form-checkbox bg-elevated text-accent-base border-contrast border-3 w-6 h-6', ], 'yes', old($this->name) ? old($this->name) === 'yes' : $this->isChecked, ); $hint = $this->hint === '' ? '' : (new Hint([ 'class' => 'ml-1', 'slot' => $this->hint, ]))->render(); $this->mergeClass('inline-flex items-center'); return <<getStringifiedAttributes()}>{$checkboxInput}{$this->slot}{$hint} HTML; } }