Radio Group

Image of a simple radio group
RadioGroup(value = 0, options = mutableListOf(
	Radio(0, "value 1"),
	Radio(1, "Value 2")
), onChange = { value -> /* The value of the selected option */ })

The value of the RadioGroup should be a state. And the value can be updated in the onClick callback that gives the value of the selected option.

By providing a style argument to the RadioGroup further customization can be implemented.
By providing vertical = false the RadioGroup layout will change to horizontal.

style = DefaultStyles.Radio.group.copy(
	vertical = false
)

In the default styles, the component width and height is set to fit the inner content in vertical layout. So when using horizontal layout the height and width may need to be changed.