Radio
Radio button for single-choice selection within a named group.
Radio Group
Disabled
Select an option to see output...
PHP PHP Methods (Fluent)
| Method / Property | Parameters | Description |
|---|---|---|
$m->radio($id) | string | Create a radio button component. |
->name($name) | string | Form group name (all radios in a group share the same name). |
->value($value) | string | Value submitted when selected. |
->checked($checked) | bool | Set selected state (default: true). |
->disabled($disabled) | bool | Disable the radio button. |
->required($req) | bool | Mark as required. |
->label($label) | string | Label text beside the radio button. |