From b671cc5ebfe2379c639cb765bcf3f440ef3659c7 Mon Sep 17 00:00:00 2001 From: Violettica Date: Fri, 13 Feb 2026 16:22:47 -0800 Subject: [PATCH] SliderDots no longer demands children it doesn't use SliderDots used the FlowComponent type, which is meant for components that strictly require children to function. SliderDots does not appear to use props.children anywhere, therefore it is more appropriate to use the Component type instead. --- src/components.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components.tsx b/src/components.tsx index e74d072..6aae73e 100644 --- a/src/components.tsx +++ b/src/components.tsx @@ -4,6 +4,7 @@ import { useContext, createSignal, FlowComponent, + Component, createEffect, For, Show, @@ -129,7 +130,7 @@ export const SliderButton: FlowComponent<{ * * ``` */ -export const SliderDots: FlowComponent<{ +export const SliderDots: Component<{ class?: string; classList?: { [k: string]: boolean | undefined }; dotClass?: string;