Kottster Packages API Reference
    Preparing search index...

    Function useTheme

    • Hook to get and set the current theme (color scheme).

      Returns { setTheme: (theme: "dark" | "light") => void; theme: "dark" | "light" }

      • setTheme: (theme: "dark" | "light") => void

        Function to set the current theme (color scheme)

      • theme: "dark" | "light"

        Current theme (color scheme)