Introduction
ProseKit provides a set of components that you can copy and paste into your project. These components are styled with Tailwind CSS, allowing you to create beautiful, responsive editors with minimal effort.
Installation
Section titled “Installation”-
Install Tailwind CSS
If you haven't already, set up Tailwind CSS in your project. See the Tailwind CSS documentation for instructions.
-
Install recommended plugins
You’ll need a few extra Tailwind CSS plugins for these components to work properly. Install the following:
pnpm add tw-animate-css @egoist/tailwindcss-icons @iconify-json/lucide
npm install tw-animate-css @egoist/tailwindcss-icons @iconify-json/lucide
yarn add tw-animate-css @egoist/tailwindcss-icons @iconify-json/lucide
bun add tw-animate-css @egoist/tailwindcss-icons @iconify-json/lucide
-
Configure Tailwind CSS
Register the Tailwind CSS plugins in your global CSS file (e.g.,
global.css
orapp.css
):@import "tailwindcss"; @import "tw-animate-css"; @plugin "@egoist/tailwindcss-icons";
-
That's it
You can now start adding components to your project.