mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
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:
parent
8443b2d7c1
commit
f0cf4e7ba5
7 changed files with 58 additions and 7 deletions
8
types/Checkbox/Checkbox.svelte.d.ts
vendored
8
types/Checkbox/Checkbox.svelte.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue