Blueprint

useTheme

useTheme is a custom hook used to get the theme object from context.

Import


import { useTheme } from '@hover/blueprint'

Return value

The useTheme hook returns the theme object.

Usage


function Example() {
const theme = useTheme()
return <div>{/* Do something with the theme */}</div>
}


Copyright © 2024 Hover Inc. All Rights Reserved.