useTheme

分类:

other

日期:

2022-3-02

标签:

chakra

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

Import#

import { useTheme } from '@chakra-ui/react';

Return value#

The useTheme hook returns the theme object.

Usage#

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

© 2022 Designed with chakra ui. Powered by contentlayerjs and nextjs etc. All rights reserved

TwitterYouTubeGithub