diff --git a/Checkbox.svelte b/Checkbox.svelte index 253ceb3..1136ded 100644 --- a/Checkbox.svelte +++ b/Checkbox.svelte @@ -3,6 +3,9 @@ import { sineInOut } from "svelte/easing"; import { createStyle } from "./utils"; + + export let disabled = false; + let self, canChange = true, changeBg = false, @@ -136,6 +139,11 @@ --checkbox-border-width: var(--checkbox-border-width-active); stroke: var(--checkbox-color-primary); } + + .checkbox__disabled { + pointer-events: none; + opacity: 0.6; + }