Components
Ai Toolbar Button

AI Toolbar Button

Opens the AI menu from the editor toolbar.

AI Menu

Three ways to open the AI menu:
  1. Try press space in the start of the block or Select text to see Ask AI in the floating toolbar
  1. Right click (or click the drag button) on the block to open the context menu and see the Ask AI
  1. You can also open the ai menu by using slash command '/'. Type '/' in the following block or end of this block.


Installation

Install the following dependencies:

npm install @radix-ui/react-toolbar

Copy and paste the following code into your project.

Get the code ->

Update the import paths to match your project setup.