Getting Started
Installation#
Inside the React project directory, setu Chakra UI, and Workpay Design Theme by running the following:
Setup Provider#
For Workpay Theme to work correctly, you need to setup the ChakraProvider
and
workpay-design/theme
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
orpages/_app.tsx
- For Gatsby, install the
gatsby-plugin-chakra-ui
. It does it automatically for you.- For Create React App, you need to set this up in
index.js
orindex.tsx