{#if child} {@render child({ active: thumbState.root.isThumbActive(thumbState.opts.index.current), props: mergedProps, })} {:else} {@render children?.({ active: thumbState.root.isThumbActive(thumbState.opts.index.current), })} {/if}