Deprecated
this useTernaryDarkMode's signature is deprecated, it now accepts an options object instead of multiple parameters.
import { useTernaryDarkMode } from "https://deno.land/x/netzo@0.5.63/deps/usehooks-ts.ts";
Custom hook for managing ternary (system, dark, light) dark mode with local storage support.
Examples
const { isDarkMode, ternaryDarkMode, setTernaryDarkMode, toggleTernaryDarkMode } = useTernaryDarkMode('my-key');
// Access and use the dark mode state and provided helper functions.
const { isDarkMode, ternaryDarkMode, setTernaryDarkMode, toggleTernaryDarkMode } = useTernaryDarkMode('my-key'); // Access and use the dark mode state and provided helper functions.