Command menu triggered by typing a character (default:Documentation Index
Fetch the complete documentation index at: https://react.email/docs/llms.txt
Use this file to discover all available pages before exploring further.
/).
SlashCommand
Array of commands to display. Falls back to
defaultSlashCommands when not provided.Custom filter function. By default, uses fuzzy matching on title, description, and search terms.
Character that triggers the command menu.
Controls when the menu can appear. Return
false to prevent it.Custom render function for the command list. Receives
items, query, selectedIndex, and onSelect.Custom rendering
Use thechildren render function to fully customize how the command list looks.
The render function receives the filtered items, current query, selected index,
and a callback to select an item:
Custom commands
Pass your own items to add domain-specific commands alongside (or instead of) the defaults:SlashCommandItem
SlashCommandRenderProps
Default commands
ThedefaultSlashCommands export includes these built-in commands:
| Command | Category | Description |
|---|---|---|
| Text | Basic | Plain text paragraph |
| Heading 1 | Headings | Level 1 heading |
| Heading 2 | Headings | Level 2 heading |
| Heading 3 | Headings | Level 3 heading |
| Numbered List | Lists | Ordered list |
| Bullet List | Lists | Unordered list |
| Quote | Basic | Block quote |
| Section | Layout | Content section |
| 2 Columns | Layout | Two-column layout |
| 3 Columns | Layout | Three-column layout |
| 4 Columns | Layout | Four-column layout |
| Divider | Basic | Horizontal rule |
| Code | Basic | Code block |
| Button | Basic | Email button |