Add name and required to RadioButtonGroup.

Properties will be inherited in `RadioButton` unless the respective property is set there.

Fixes #1036.
This commit is contained in:
Harald Brunner 2022-01-22 18:49:45 +01:00 committed by brunnerh
commit 00cab46284
5 changed files with 1650 additions and 1505 deletions

View file

@ -16,6 +16,18 @@ export interface RadioButtonGroupProps extends RestProps {
*/
disabled?: boolean;
/**
* Set to `true` to require the selection of a radio button
* @default false
*/
required?: boolean;
/**
* Specify a name attribute for the radio button inputs
* @default ""
*/
name?: string;
/**
* Specify the legend text
* @default ""