Build faster with Premium Chakra UI Components 💎
Search the docs
Utility
Component
useTheme is a custom hook used to get the theme object from context.
useTheme
import { useTheme } from '@chakra-ui/react'
The useTheme hook returns the theme object.
function Example() { const theme = useTheme() return <div>{/* Do something with the theme */}</div>}
Previous
Next