Add required prop to Checkbox.

Fixes #1029.
This commit is contained in:
Harald Brunner 2022-01-22 09:36:28 +01:00
commit a818ecd9e8
4 changed files with 22 additions and 0 deletions

View file

@ -32,6 +32,12 @@ export interface CheckboxProps {
*/
skeleton?: boolean;
/**
* Set to `true` to mark the field as required
* @default false
*/
required?: boolean;
/**
* Set to `true` for the checkbox to be read-only
* @default false