export const title = "Text editor components"
export const description = "Powerful and customizable React text editor components built for modern applications and websites. These text editors are built using TipTap and styled with Tailwind CSS."
export const links = {
tiptap: "https://tiptap.dev/docs",
}
import * as Demos from "@/components/base/text-editor/text-editor.demo.tsx";
## Installation
You can add this Text editor component using our CLI or manually:
```bash
npx untitledui@latest add text-editor
```
As our text editor component is built with [TipTap](https://tiptap.dev/docs), you'll need to install the dependencies:
```bash
npm install @tiptap/core @tiptap/react @tiptap/pm @tiptap/starter-kit @tiptap/extension-text-style @tiptap/extension-image @tiptap/extension-placeholder @tiptap/extension-text-align @floating-ui/dom
```
Copy the files below into your project:
Great! Now you can start using the text editor components in your project by just copy/pasting our examples below.
## Text editor examples
Below are examples and variations of this text editor component:
### Default sm {{ tocOnly:true }}
### Default md {{ tocOnly:true }}
### Floating toolbar sm {{ tocOnly:true }}
### Floating toolbar md {{ tocOnly:true }}
### With tooltip {{ tocOnly:true }}