- RadioButtonGroup values for name/required override those of RadioButton

- Fix reactivity when RadioButton is used without group
- Use `readable` when writing is not required
- Use `readonly` to make intent clearer.
- Remove default values for `required` and `name`
  - More consistent with other input types
  - Means that `name` attribute will not be added for no reason
This commit is contained in:
brunnerh 2023-09-30 21:25:56 +02:00
commit a81328feef
7 changed files with 1528 additions and 1612 deletions

View file

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