Quick start
Add the kit to a Next.js app and render your first Editor.
Install
Install an exact version, without ^: the site describes exactly one version of the kit — its
number is in the site header. Replace VERSION with it.
npm i @olddevs/ui@VERSIONApart from React, which your app installs itself, nothing else is needed: the kit brings Radix, react-aria, lucide and its other libraries itself.
The Editor engine, Tiptap 3, is not in the kit manifest, so the npm i above does not install it.
For your first Editor, install the engine packages with the single command from the
Installation section of the Editor page.
Styles and Tailwind
The app's CSS needs three lines. The app imports Tailwind 4 itself, once; @source is required
because Tailwind does not scan node_modules.
@import "tailwindcss";
@import "@olddevs/ui/styles.css";
@source "./node_modules/@olddevs/ui/dist";Next.js: optimizePackageImports
Without this line a page that needs one component ships the whole kit, and a page with
RichTextView ships the whole Editor with its engine:
export default {
experimental: {
optimizePackageImports: ["@olddevs/ui", "@olddevs/ui/editor"],
},
};First Editor
import { RICH_TEXT_PRESETS, RichTextEditor } from "@olddevs/ui/editor";
export function ArticleBody() {
return (
<RichTextEditor aria-label="Article body" tools={RICH_TEXT_PRESETS.basic} />
);
}tools defines the set of Tools: kit names, a Preset
(RICH_TEXT_PRESETS) or custom Tools. The basic Preset gives a short Toolbar; full gives everything the kit can do. To add custom Tools, see
the “Merge Tag” Recipe.
What's next
- RichTextEditor reference — props, methods via
ref, events, Skeleton. - Extension API — a custom Tool and the stability boundary.
- Recipes — ready-made solutions to common tasks with Live examples.