Components
AI Leaf
AI Leaf
Opens the AI menu from the editor toolbar.
Installation
npx @udecode/plate-ui@latest add ai-leaf -r plate-ui
Examples
'use client';
import React from 'react';
import { cn, withRef } from '@udecode/cn';
import { PlateLeaf } from '@udecode/plate-common/react';
export const AILeaf = withRef<typeof PlateLeaf>(
({ children, className, ...props }, ref) => {
return (
<PlateLeaf
ref={ref}
className={cn(
'border-b-2 border-b-purple-100 bg-purple-50 text-purple-800',
'transition-all duration-200 ease-in-out',
className
)}
{...props}
>
{children}
</PlateLeaf>
);
}
);
Plate Plus
In Plate Plus, we provides more advanced styles and complete backend setup
All of the backend setup is available in Potion template.
Build your editor even faster
Complete, deployable AI-powered template with backend.
All components included.
Customizable and extensible.
Get all-accessCustomizable and extensible.