useTheme is a custom hook to get the theme object from context.
useTheme
import { useTheme } from "@chakra-ui/core";
The useTheme hook returns the theme object.
function Example() { const theme = useTheme(); return <div>{/* Do something with the theme */}</div>;}
Proudly made in 🇳🇬
Released under the MIT License.
Copyright © 2019 Segun Adebayo