Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Workspace & tools

Document editor shell

An editor frame with menubar, formatting toolbar, split Save button, and a status bar that tracks changes.

bunx --bun @getweini/cli@latest add kbd menubar split-button toggle-group toolbar
Customize
  • Pass your content as `paragraphs`. Formatting is stored per paragraph and applies to the one you are editing; swap the `contenteditable` paragraphs for your editor (Tiptap, Lexical) and keep the shell.
  • The `Toolbar` is one tab stop: arrow keys move between buttons and the two toggle groups. Bold, italic, and underline reflect the active paragraph.
  • `Menubar` commands emit `command` with an id such as `file.new` or `view.status`, so the shell does not decide what they do. Shortcut text is a visual hint only; register real shortcuts in your app.
  • The `SplitButton` runs the primary save on click and offers alternate destinations in its menu. Pass `saving` to show its loading state and the status text.
  • Use the `saving` state to preview the busy button and the status text; the status bar reads Unsaved changes after the first edit.