Enhance Checkbox to use bind:group (#947)

* Enhance Checkbox to use bind:group

* Use custom logic

* Move multiple checkboxes above skeleton

* Incorprate PR feedback

* Any instead of string
This commit is contained in:
Gregor Wassmann 2021-12-30 22:31:33 +01:00 committed by GitHub
commit f0cf4e7ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 7 deletions

View file

@ -6,7 +6,7 @@ export interface CheckboxProps {
* Specify the value of the checkbox
* @default ""
*/
value?: string;
value?: 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