mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
Enhance Checkbox to use bind:group
This commit is contained in:
parent
a522a55596
commit
ede294d553
6 changed files with 54 additions and 5 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?: 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue