Rendyn

Component library

189 components

Product blocks

Editor

Editor wraps a Tiptap setup with composed menus and controls.

Interactive exampleReact Tailwind CSS

Practical React example

Let someone edit a bounded rich-text document with a deliberately chosen set of extensions.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/editor/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add button command dropdown-menu popover separator tooltip.

Listed package dependencies: @floating-ui/dom, @tiptap/core, @tiptap/extension-code-block-lowlight, @tiptap/extension-list, @tiptap/extension-subscript, @tiptap/extension-superscript, @tiptap/extension-table, @tiptap/extension-text-style, @tiptap/extension-typography, @tiptap/extensions, @tiptap/pm, @tiptap/react, @tiptap/starter-kit, @tiptap/suggestion, fuse.js, lowlight, lucide-react, tippy.js.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Let someone edit a bounded rich-text document with a deliberately chosen set of extensions

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
'use client';

import type { JSONContent } from '@tiptap/core';
import { EditorProvider } from '@/components/kibo-ui/editor';

export function ArticleDraft({ content, onDraftChange }: {
  content: JSONContent;
  onDraftChange: (document: JSONContent) => void;
}) {
  return (
    <EditorProvider
      content={content}
      placeholder="Write the project notes…"
      onUpdate={({ editor }) => onDraftChange(editor.getJSON())}
    />
  );
}

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Persist the editor’s intended document format, keep extension versions compatible and decide how existing documents migrate when the schema changes.

Customization

EditorSlashMenuProps.items
Required; SuggestionItem[].
EditorSlashMenuProps.command
Required; (item: SuggestionItem) => void.
EditorSlashMenuProps.editor
Required; Editor.
EditorSlashMenuProps.range
Required; Range.
EditorProviderProps.className
Optional; string.
EditorProviderProps.limit
Optional; number.
EditorProviderProps.placeholder
Optional; string.
EditorButtonProps.name
Required; string.
EditorButtonProps.isActive
Required; () => boolean.
EditorButtonProps.command
Required; () => void.
EditorButtonProps.icon
Required; LucideIcon | ((props: LucideProps) => ReactNode).
EditorButtonProps.hideName
Optional; boolean.
EditorSelectorProps.open
Optional; boolean.
EditorSelectorProps.onOpenChange
Optional; (open: boolean) => void.

Integration notes

  • Sanitize rendered content and validate uploads or links at the server boundary.
  • Local editor state is not a durable save; show pending, saved and failed outcomes from real persistence.
  • Rendyn’s returned editor source forwards Tiptap’s suggestion AbortSignal to defaultSlashSuggestions. The original pinned source predates this required argument; the source adapter is tested with the installed Tiptap version.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP