alepha@docs:~/docs/reference/react-hooks$
cat useTheme.md
1 min read
Last commit:

#useTheme

#Import

typescript
1import { useTheme } from "@alepha/ui/styles";

#Overview

Hook to get and set the current theme.

Returns a tuple with the current theme and a function to set the theme.

tsx
1const [theme, setTheme] = useTheme();