From 5d896c649f62b7bbdebf851e2b43d83dabeb890a Mon Sep 17 00:00:00 2001 From: BeeMargarida Date: Thu, 11 Apr 2024 17:58:40 +0100 Subject: [PATCH] [fix](core): add required prop to checkbox ISSUES CLOSED: #492 --- packages/svelteui-core/src/components/Checkbox/Checkbox.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/svelteui-core/src/components/Checkbox/Checkbox.svelte b/packages/svelteui-core/src/components/Checkbox/Checkbox.svelte index 96f0afdb..e70c9e58 100644 --- a/packages/svelteui-core/src/components/Checkbox/Checkbox.svelte +++ b/packages/svelteui-core/src/components/Checkbox/Checkbox.svelte @@ -24,6 +24,7 @@ radius: $$Props['radius'] = 'sm', size: $$Props['size'] = 'md', name: $$Props['name'] = '', + required: $$Props['required'] = false, transitionDuration: $$Props['transitionDuration'] = 100; export { className as class }; @@ -66,6 +67,7 @@ A checkbox input component using the theme styles with support for a label and i class:disabled type="checkbox" {disabled} + {required} {value} {id} {name}