OverviewDocsPreviewsBuilder

Installation

How to install Tiptide in your React project.

Tiptide is designed to be installed alongside React 19. Run the following command using your preferred package manager to get started:

Step 1: Install Package

pnpm add tiptide

(Or use npm install tiptide or yarn add tiptide)

Tiptide already includes all necessary Tiptap core and extension dependencies, so you do not need to install them separately.

Step 2: Configure Tailwind CSS

Tiptide uses Tailwind CSS for its styling system. If you are using Tailwind v4, ensure your globals file has the appropriate setup. Tiptide's stylesheet will seamlessly integrate with your existing neutral/zinc base theme variables.

Step 3: TypeScript Declaration (Optional)

If your TypeScript compiler complains about importing CSS side-effects like import 'tiptide/styles';, you can create a declaration file in your project (e.g., src/types/tiptide.d.ts):

declare module 'tiptide/styles';

Example

tsx
// Typical structure of your layout or app entry
import React from 'react';
import { TiptideEditor } from 'tiptide';
import 'tiptide/styles'; // Import Tiptide base CSS

export function App() {
  return (
    <div className="w-full max-w-4xl mx-auto p-6">
      <TiptideEditor
        placeholder="Type here..."
        onChange={(editor) => console.log(editor.getJSON())}
      />
    </div>
  );
}