OverviewDocsPreviewsBuilder

Editor Tools API

Select, customize, and arrange individual tools inside your toolbar.

Tiptide registers a large collection of individual tools on the Toolbar namespace. When composing a custom toolbar, you can render only the tools you need, group them with dividers, or create highly bespoke layouts.

All Available Tools

ToolNamespace / CodeDescription
Undo / Redo<Toolbar.undo />, <Toolbar.redo />History tracking
Basic Formats<Toolbar.bold />, <Toolbar.italic />, <Toolbar.underline />, <Toolbar.strike />, <Toolbar.code />Inline styles
Lists<Toolbar.lists />Bullet and ordered dropdown selection
Text Blocks<Toolbar.textBlocks />Paragraph, Heading 1, Heading 2, Heading 3 selection
Block Quotes<Toolbar.blockquote />Blockquotes styling
Code Blocks<Toolbar.codeblock />Monospace syntax highlight blocks
Color Selector<Toolbar.colorSelector />Color palette for selected text
Links<Toolbar.link />Inline hyperlinking utility
Alignment<Toolbar.alignLeft />, <Toolbar.alignCenter />, <Toolbar.alignRight />, <Toolbar.alignJustify />Text paragraph alignment
Scripts<Toolbar.superscript />, <Toolbar.subscript />Math or baseline formatting
Image<Toolbar.image />Local/web image inserting tool
Rules<Toolbar.horizontalRule />Thick block paragraph divider
Dividers<Toolbar.separator />Small vertical dividing line

Example

tsx
import { TiptideProvider, TiptideTextarea, Toolbar } from 'tiptide';

export function CommentEditor() {
  return (
    <TiptideProvider content="">
      <div className="border border-neutral-200 rounded-lg">
        {/* Simple compact toolbar for comments: bold, italic, link only! */}
        <Toolbar className="bg-neutral-50 py-1 px-2 border-b dark:bg-neutral-900 dark:border-neutral-800">
          <Toolbar.bold />
          <Toolbar.italic />
          <Toolbar.link />
          <Toolbar.separator />
          <Toolbar.undo />
          <Toolbar.redo />
        </Toolbar>
        
        <div className="p-3 min-h-[100px] text-sm">
          <TiptideTextarea />
        </div>
      </div>
    </TiptideProvider>
  );
}