Rich text editor preview
Author controlled formatted content with constrained native editing and JSON serialization.
pro · Forms · composite
When to use
- Use it when a page needs author controlled formatted content with constrained native editing and json serialization.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than rich text editor.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/rich-text-editorImport components/ui/tidal.css, components/ui/rich-text-editor.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/rich-text-editor.css";
import{TidalRichTextEditor}from"./components/ui/rich-text-editor";
export default()=><div className="tidal-scope"><TidalRichTextEditor label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;API and props
TidalRichTextEditor.label (required)ReactNodeRequired label value accepted by this exported component.
TidalRichTextEditor.onValueChange (required)(value: string, editor: LexicalEditor) => voidCallback invoked when the value change interaction is proposed.
TidalRichTextEditor.value (required)stringRequired value value accepted by this exported component.
TidalRichTextEditor.commandButtonPropsPartial<Record<TidalRichTextCommand, CommandButtonProps>> | undefinedOptional command button props value accepted by this exported component.
TidalRichTextEditor.commandButtonRefsPartial<Record<TidalRichTextCommand, Ref<HTMLButtonElement>>> | undefinedOptional command button refs value accepted by this exported component.
TidalRichTextEditor.contentEditablePropsEditableProps | undefinedOptional content editable props value accepted by this exported component.
TidalRichTextEditor.contentEditableRefRef<HTMLDivElement> | undefinedOptional content editable ref value accepted by this exported component.
TidalRichTextEditor.descriptionReactNodeOptional description value accepted by this exported component.
TidalRichTextEditor.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalRichTextEditor.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalRichTextEditor.editorRefRef<LexicalEditor> | undefinedOptional editor ref value accepted by this exported component.
TidalRichTextEditor.errorReactNodeOptional error value accepted by this exported component.
TidalRichTextEditor.formstring | undefinedOptional form value accepted by this exported component.
TidalRichTextEditor.hiddenInputPropsHiddenInputProps | undefinedOptional hidden input props value accepted by this exported component.
TidalRichTextEditor.hiddenInputRefRef<HTMLInputElement> | undefinedOptional hidden input ref value accepted by this exported component.
TidalRichTextEditor.labelsTidalRichTextEditorLabels | undefinedOptional labels value accepted by this exported component.
TidalRichTextEditor.linkHrefstring | null | undefinedOptional link href value accepted by this exported component.
TidalRichTextEditor.namestring | undefinedOptional name value accepted by this exported component.
TidalRichTextEditor.onPaste((event: ClipboardEvent) => void) | undefinedCallback invoked when the paste interaction is proposed.
TidalRichTextEditor.placeholderReactNodeOptional placeholder value accepted by this exported component.
TidalRichTextEditor.portalContainerHTMLElement | null | undefinedOptional portal container value accepted by this exported component.
TidalRichTextEditor.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalRichTextEditor.theme"light" | "dark" | undefinedOptional theme value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.