File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 88 import { createEventDispatcher } from ' svelte' ;
99 export let checked: boolean = false ;
1010 export let disabled: boolean = false ;
11- export let label: string = ' ' ;
1211 export let size: ' sm' | ' md' | ' lg' = ' md' ;
1312 const dispatch = createEventDispatcher ();
1413
3029 </script >
3130
3231<div class =" flex items-center space-x-3 select-none" >
33- {#if label }
34- <label class ="text-base cursor-pointer" on:click ={toggle }>{label }</label >
35- {/if }
3632 <button
3733 type =" button"
3834 class ="relative focus:outline-none transition-colors duration-200 rounded-full border-2 border-gray-300 bg-gray-200 flex items-center {btnSize } {disabled
3935 ? ' opacity-50 cursor-not-allowed'
4036 : ' cursor-pointer' }"
4137 aria-checked ={checked }
4238 on:click |stopPropagation
43- aria-label ={label }
4439 {disabled }
4540 on:click ={toggle }
4641 role =" switch"
You can’t perform that action at this time.
0 commit comments