Rich text editor whose floating toolbar pill grows out of the caret, with a stretching format highlight, cascading slash and mention menus and mention chips.
Press mePress me
Ticket #4821 · Reply
Export limit on Growth plan
R
Riley Moss Customer · 10:42
Our CSV exports stop at 1,000 rows. Is that a plan limit?
Y
You Internal note · 10:51
Checked with billing: Growth plans can go to 5,000.
Thanks for the report. The export limit is raised to 5,000 rows as of today. @Dana will confirm it on your workspace.
rich-editor · , lively
rich-editor-demo.tsx
When to use
Use when a textarea is not enough: floating toolbar on selection, slash commands, mentions. Built on Tiptap; values as HTML, JSON or markdown-lite. Presets: inline, document, composer.
When not to use
For plain multi-line text use Textarea. For a single line use Text Field.
Rich text where a textarea is not enough: helpdesk replies and macros, CRM emails, job posts, task descriptions, knowledge base articles, product descriptions. Selecting text drops a 6 px ball at the caret, then the toolbar pill grows out of it above the selection (below only when a clip leaves no room above) and follows it; the active format is one highlight that stretches between buttons; / at a line start and @ open menus that grow from the caret; a chosen person pinches into a chip. For a single line or plain text, use Text Field; for a search box with suggestions, use Combobox.
value, defaultValue and onValueChange speak HTML by default; format="json" uses Tiptap's JSON (as a string) and format="markdown-lite" reads and writes paragraphs, headings, lists, quotes, bold, italic, strike, code and links. Every customer string is parsed by the editor's schema, never injected as HTML. ref gives you the Tiptap Editor (null until it mounts on the client), extensions appends your own Tiptap extensions, slashItems appends rows to the / menu and features limits the formats.
preset picks the layout: inline (no fixed bar, only the floating pill and menus), document (a sticky bar on top with headings, lists and quote) or composer (a compact bar at the bottom with attachments, the counter and Send). temperament tunes how much it moves; the look never changes. The parts are also available as RichEditor.Toolbar, RichEditor.Floating, RichEditor.Menu, RichEditor.Chip and RichEditor.Footer.
loading draws three line pills over the reserved height, disabled mutes the field and hides the bar, error raises a destructive rim with its message, and a counter past maxLength turns destructive (typing is not blocked). Empty, the placeholder and the / hint show.
Press mePress me
Draft (syncing)
Thanks for the report.
Type / for commands
Closed ticket
Resolved: the export limit is 5,000 rows on Growth.
Reply
Your export limit is now 5,000 rows. Reply STOP to opt out of updates.
The editable area is a textbox with aria-multiline="true", named by aria-label or aria-labelledby; the error and the counter are linked with aria-describedby, aria-invalid follows error.
Both toolbars are role="toolbar" with one tab stop and roving focus; every button is named and carries aria-pressed. Buttons are 28 px (24 px minimum target) with a ring-[3px] ring-ring/50 focus ring.
The floating toolbar is reachable with Cmd/Ctrl + Shift + F while text is selected; Escape returns to the text.
Menus are a listbox driven from the editor with aria-activedescendant: focus never leaves the text; they open upward when the space below is clipped and close when the editor loses focus.
A selection set by code while the editor is not focused (editor.commands.setTextSelection) stays painted and shows the pill without moving focus; the toolbar then formats without focusing the text.
A mention chip is <span role="link" aria-label="Mention: Dana">.
A polite live region announces "Bold on", "Link added", "Mention added: Dana". The caret ball, the highlight and the loading lines are aria-hidden.
The toolbar pill and the menus crossfade in place instead of growing out of the caret, the format highlight glides without stretching, buttons do not sink and the ball does not kick; rows and mention chips fade in. The error rim and message fade. Depth, hover and focus stay.
Nothing runs at rest. The selection is measured once per change (never per frame) to place the ball and the pill; the menus mount only while open. The server HTML (and the first client render) shows the initial text as static, readable prose in a box that reserves minRows; Tiptap mounts on the client after hydration, so there is no hydration mismatch and no layout shift. Our code is about 14.3 kB gzip. Third-party code, loaded with the component: Tiptap 3 with ProseMirror (@tiptap/react, @tiptap/starter-kit, @tiptap/extensions, @tiptap/extension-mention, @tiptap/suggestion, @tiptap/pm) about 139 kB gzip including linkifyjs and @floating-ui/dom (mentions account for 2.2 kB of it), plus motion. Load it with next/dynamic on pages where the editor is below the fold.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, motion.
Dependencies
@tiptap/extension-mention@3.32.0
@tiptap/extensions@3.32.0
@tiptap/pm@3.32.0
@tiptap/react@3.32.0
@tiptap/starter-kit@3.32.0
@tiptap/suggestion@3.32.0
motion · peer
Triggers
press, typing, keyboard focus
Reduced motion
The toolbar pill and the menus crossfade in place instead of growing from the caret, the format highlight glides without stretch, no press sink or ball kick, mention chips and rows fade in.
Keyboard
Cmd/Ctrl + B / I
Bold / italic on the selection (the active highlight stretches to the button)
Cmd/Ctrl + K
Opens the link field in the floating pill (removes the link when one is active)
Cmd/Ctrl + Z / Shift + Z
Undo / redo
Cmd/Ctrl + Enter
Submits (onSubmit), the composer's Send
Cmd/Ctrl + Shift + F
Moves focus into the floating toolbar while text is selected
Arrow Left / Right, Home / End
Roving focus between toolbar buttons
Escape
From a toolbar or the link field back to the text; closes an open menu
/ (line start), @
Opens the command or mention menu at the caret
Arrow Up / Down, Enter, Tab
Moves the menu highlight and picks the row
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)