mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix: add a value prop to Checkbox (#849)
This commit is contained in:
parent
e0d5e6133e
commit
fed34e40ed
4 changed files with 22 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
|||
* @event {boolean} check
|
||||
*/
|
||||
|
||||
/** Specify the value of the checkbox */
|
||||
export let value = "";
|
||||
|
||||
/** Specify whether the checkbox is checked */
|
||||
export let checked = false;
|
||||
|
||||
|
@ -69,6 +72,7 @@
|
|||
<input
|
||||
bind:this="{ref}"
|
||||
type="checkbox"
|
||||
value="{value}"
|
||||
checked="{checked}"
|
||||
disabled="{disabled}"
|
||||
id="{id}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue