src/Bootstrap/Traits/BuildsForms.php
public function radioGroup($name, $options, $selectedOption = null): RadioGroup
    {
        $element = new RadioGroup($this->formState);

        return $element
            ->name($name)
            ->id(field_name_to_id($name) . '_radio_group')
            ->options($options)
            ->selectedOption($selectedOption);
    }
public function radioGroup($name, $options, $selectedOption = null): RadioGroup
    {
        $element = new RadioGroup($this->formState);

        return $element
            ->name($name)
            ->id(field_name_to_id($name) . '_radio_group')
            ->options($options)
            ->selectedOption($selectedOption);
    }
@param string|null $name
@param array       $options
@param string      $selectedOption

@return \MarvinLabs\Html\Bootstrap\Elements\RadioGroup