MDX Editor
Powerful editor with live preview and AI writing assistant
Sleeve's MDX editor combines the simplicity of Markdown with the power of React components, giving you a professional writing experience with live preview and AI assistance.
Editor Features
Rich Text Editing
The editor provides an intuitive interface for creating and formatting content:
Visual Toolbar
Quick-access formatting tools for common operations
Markdown Support
Full Markdown syntax with instant rendering
MDX Components
Insert custom components directly into your docs
Auto-Save
Never lose your work with automatic draft saving
Live Preview
See your changes in real-time as you type:
The live preview updates instantly, showing exactly how your documentation will look when published.
Toggle between edit mode, preview mode, or split view to see both simultaneously.
All MDX components, code blocks, and formatting render live as you type.
See how your docs will look on different screen sizes.
AI Writing Assistant
The AI writing assistant helps you create better documentation faster by leveraging your existing knowledge base.
Activating the Assistant
What the Assistant Can Do
Generate Content
Create new sections, paragraphs, or complete documents from prompts
Improve Writing
Enhance clarity, fix grammar, and improve tone
Search Your Docs
Find relevant information from your existing documentation
Answer Questions
Get instant answers based on your knowledge base
Summarize Content
Create summaries or extract key points from long documents
Format & Structure
Organize content with proper headings, lists, and structure
Context-Aware Suggestions
The AI assistant is uniquely powerful because it has access to all your documentation:
When you ask the assistant a question or request content, it automatically searches your existing docs to provide relevant, accurate suggestions based on your organization's knowledge.
Example Use Cases:
Prompt: "Create documentation for the user authentication endpoint"
Assistant searches existing API docs, finds similar patterns,
and generates consistent documentation following your style.Prompt: "Make this section clearer"
Assistant analyzes the selected text and rewrites it for
better clarity while maintaining your technical accuracy.Assistant Interface
The assistant appears as a floating panel next to your cursor:
Enter a prompt describing what you need help with.
The assistant provides suggestions based on your prompt and existing docs.
Click to insert the suggested content, or refine your prompt for better results.
The inserted content becomes part of your document and can be further edited.
MDX Component Library
Sleeve supports a rich set of MDX components to make your documentation interactive and visually appealing:
Callouts
Highlight important information
Cards
Create visual card layouts
Tabs
Organize related content
Code Groups
Show code in multiple languages
Accordions
Collapsible content sections
Steps
Sequential instructions
See the MDX Components reference for complete documentation and examples of all available components.
Code Blocks
Create beautiful, syntax-highlighted code blocks with titles:
const greet = (name) => {
console.log(`Hello, ${name}!`);
};
greet('World');def greet(name):
print(f"Hello, {name}!")
greet("World")function greet(name: string): void {
console.log(`Hello, ${name}!`);
}
greet('World');Best Practices
Keyboard Shortcuts
Master these shortcuts to write more efficiently:
| Shortcut | Action |
|---|---|
⌘/Ctrl + J | Open AI assistant |
⌘/Ctrl + I | Open components/snippets dropdown |
With the MDX editor and AI assistant, you can create professional documentation faster than ever. Happy writing!