saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Novel Editor

Novel Editor

A rich text editor powered by Novel/Tiptap.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/novel-editor.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { NovelEditor } from "@/components/ui/novel-editor"
<NovelEditor content={content} onChange={setContent} />

Examples

Slash Commands

Loading...
Editor with slash command menu.

Bubble Menu

Loading...
Editor with floating toolbar.

API Reference

PropTypeDefaultDescription
contentstring—Editor content (JSON).
onChange(content: string) => void—Content change handler.
PreviousNavigation MenuNextPage Navigation

On This Page

  • Installation
  • Usage
  • Examples
  • Slash Commands
  • Bubble Menu
  • API Reference

Welcome to the Editor

This is a rich text editor built with modern React components. It supports various formatting options:

  • Bold, italic, and underline text
  • Headings and paragraphs
  • Bullet and numbered lists
  • Block quotes and code blocks
Pro tip: Use the toolbar above to format your text, or try keyboard shortcuts like Cmd+B for bold.

Start typing to create your content...

Type / for commands61 words

Start typing and press / to see the slash command menu.


Type / for commands11 words

Rich Text with Bubble Toolbar

Select any text in this editor to see the floating bubble toolbar appear. You can use it to apply formatting such as italic, underline, or inline code.

Try selecting a word or phrase below to format it:

The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.

Select text to format59 words