Enhance Checkbox to use bind:group

This commit is contained in:
Gregor Wassmann 2021-12-27 23:31:56 +01:00
commit ede294d553
6 changed files with 54 additions and 5 deletions

View file

@ -6,7 +6,7 @@ export interface CheckboxProps {
* Specify the value of the checkbox
* @default ""
*/
value?: string;
value?: string | any;
/**
* Specify whether the checkbox is checked
@ -14,6 +14,12 @@ export interface CheckboxProps {
*/
checked?: boolean;
/**
* Specify the bound group
* @default []
*/
group?: any[];
/**
* Specify whether the checkbox is indeterminate
* @default false