Toggle input
Read-only PHP for this component, with a live preview.
PHP example
Read-only builder code generated from the Toggle input class and its catalog defaults. Copy it into your own application.
ToggleInputExample.php
<?php
use Streams\Ui\Builders\Inputs\ToggleInput;
$toggleInput = ToggleInput::make('enabled')
->label('Enabled');