Markdown Editor

Compact rich text editor embedded in a form field, powered by Tiptap

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