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