for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lagdo\UiBuilder\Component\Base;
use Lagdo\UiBuilder\Component\HtmlComponent;
class RadioComponent extends HtmlComponent
{
use Traits\InputLabelTrait;
use Traits\InputValidationTrait;
/**
* @var string
*/
public static string $tag = 'input';
* @param bool $checked
*
* @return static
public function checked(bool $checked = false): static
$this->element()->setAttribute('checked', $checked ? 'checked' : false);
return $this;
}