The Checkbutton widget is used for boolean toggle inputs.
use PhpGui\Widget\Checkbutton;
$check = new Checkbutton('parentId', ['text' => 'Check me']);
$check->setChecked(true);
- Stores a boolean value (checked or unchecked).
- Provides methods to get and set its state.
- Ideal for forms and settings interfaces.