oks-ui

Editors

Block-based rich text editor (Notion-style) with 14 block types, slash-menu insertion, and drag-and-drop reordering.

Example

Props

value

Block[]

Default: []

The current block array. Uncontrolled internally (updates flow through onChange), but value seeds the initial content.

placeholder

string

Default: "Type / for blocks..."

Aria-label for the editor root and the empty-paragraph placeholder text.