Example app with chakra-ui and Typescript
This example features how to use tiptap with react using chakra-ui as the component library within a Next.js app with typescript.
Next.js and chakra-ui have built-in TypeScript declarations, so we'll get autocompletion for their modules straight away.
We are connecting the Next.js _app.js
with chakra-ui
's Provider and theme so the pages can have app-wide dark/light mode. We are also creating some components which shows the usage of chakra-ui
's style props.
Preview the example live on StackBlitz:
Deploy the example using Vercel: