mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -4,6 +4,11 @@
|
|||
export let labelA = "Off";
|
||||
export let labelB = "On";
|
||||
export let labelText = "";
|
||||
|
||||
/**
|
||||
* Set an id for the input element
|
||||
* @type {string} [id]
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
export let name = undefined;
|
||||
</script>
|
||||
|
@ -24,7 +29,7 @@
|
|||
toggled = !toggled;
|
||||
}}
|
||||
on:keyup
|
||||
on:keyup={e => {
|
||||
on:keyup={(e) => {
|
||||
if (e.key === ' ' || e.key === 'Enter') {
|
||||
e.preventDefault();
|
||||
toggled = !toggled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue