Markdown Editor

Compact React rich text editor powered by Tiptap, embedded in a form field — full markdown formatting toolbar, variants, and invalid state

import { MarkdownEditor } from "@plexui/ui/components/MarkdownEditor";

Examples

Placeholder

All formatting

With Field

Supports bold, italic, lists, and links.

Toolbar end slot

Variants

Disabled

Invalid

Reference

PropTypeDefaultDescription
variant"outline" | "soft""outline"Visual style of the editor
disabledbooleanfalseDisable the editor
invalidbooleanfalseMark as invalid
placeholderstringPlaceholder text when empty
valuestringControlled markdown value
defaultValuestringInitial markdown for uncontrolled mode
onChange(markdown: string) => voidCalled on content change
toolbarEndReactNodeContent rendered at the end of the toolbar
rowsnumber1Minimum visible rows