From 693a721b44ae045becfccfbf1ee66e777233209d Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Mon, 8 Dec 2025 13:41:58 +0530 Subject: [PATCH] New Chnages to Switch Theme --- src/components/ThemeSwitcher.astro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/ThemeSwitcher.astro b/src/components/ThemeSwitcher.astro index 167764c..25b1796 100644 --- a/src/components/ThemeSwitcher.astro +++ b/src/components/ThemeSwitcher.astro @@ -11,6 +11,7 @@ interface Props extends HTMLAttributes<"div"> { darkBgClass?: string[]; lightBgClass?: string[]; rootExtraClass?: string; + onChange?: (mode: "light" | "dark" | "system") => void; } const { @@ -22,6 +23,7 @@ const { lightBgClass = [], rootExtraClass = "", class: className, + onChange, ...rest }: Props = Astro.props; @@ -91,7 +93,7 @@ const checkBase = "wr:size-4 wr:opacity-0 wr:scale-90 wr:transition"; } -