# @naatchaal/editor — full AI documentation Product: Naat Editor npm: `@naatchaal/editor` MCP: `@naatchaal/editor-mcp` Home: https://naat.tools/editor Privacy: Editing runs in the browser; content leaves the tab only if the host app persists exports. **North star:** highly customizable to the deep — but simple. Progressive disclosure: 1. **Start here (≈90%)** — few imports/props; create/edit, save, validate 2. **Customize deeply (≈10%)** — theme, toolbar chrome/icons/custom items, layout composition Same package for both. Do **not** invent TipTap / Lexical / Quill APIs. Styles auto-load with `@naatchaal/editor` (1.0.1+); `styles.css` is optional, never mandatory. Prefer `generate_integration` `style: "simple"`. ## Package surface | Import | Purpose | |--------|---------| | `@naatchaal/editor` | `NaatEditor`, form helpers, types, config helpers, core exports (pulls default styles) | | `@naatchaal/editor/styles.css` | Optional explicit stylesheet (load order / non-bundlers) | Important: bundle includes `"use client"` — safe for Next.js App Router Client Components. --- ## Start here ### React API — `` (simple) ```ts type NaatEditorProps = { /** Optional. Omit for default toolbar / marks / blocks / theme. */ config?: Partial; /** Seed on mount: DocNode | JSON | HTML | plain text. Remount with key= to re-seed. */ initialContent?: DocNode | string; className?: string; style?: CSSProperties; /** Empty-state hint (like