Components
Toggle Element

Toggle Element

A collapsible component for toggling content visibility.

Installation

Install the following dependencies:

npm install @udecode/plate-toggle @radix-ui/react-slot @radix-ui/react-tooltip @udecode/plate-selection

Copy and paste the following code into your project.

Get the code ->

Update the import paths to match your project setup.