Add required prop to RadioButton. (#1035)

Fixes #1034.
This commit is contained in:
brunnerh 2022-01-22 18:05:41 +01:00 committed by GitHub
commit 25ce57fd5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 17 deletions

View file

@ -16,11 +16,17 @@ export interface RadioButtonProps
checked?: boolean;
/**
* et to `true` to disable the radio button
* Set to `true` to disable the radio button
* @default false
*/
disabled?: boolean;
/**
* Set to `true` to mark the field as required
* @default false
*/
required?: boolean;
/**
* Specify the label position
* @default "right"
@ -46,7 +52,7 @@ export interface RadioButtonProps
id?: string;
/**
* Specify a name attribute for the checkbox input
* Specify a name attribute for the radio button input
* @default ""
*/
name?: string;