Configuration
Setup Provider
For Chakra UI to work correctly, you need to setup the
ChakraProvider
at the root of your application.Go to the root of your application and do this:
For Next.js, you need to set this up in pages/_app.js
or pages/_app.tsx
For Gatsby, install the @chakra-ui/gatsby-plugin
. It does it automatically for you.
For Create React App, you need to set this up in index.js
or index.tsx
Add custom theme (Optional)
If you need to customize the default chakra theme to match your design requirements, you can extend the
theme
from @chakra-ui/react
.Chakra UI provides an
extendTheme
function that deep merges the default theme with your customizations.Proudly developed in by Anuoluwapo Abraham