返回 presentation-ai
paragraph-node.tsx
根目录 / src / components / plate / ui / paragraph-node.tsx
1 "use client";
2
3 import { PlateElement, type PlateElementProps } from "platejs/react";
4
5 import { cn } from "@/lib/utils";
6
7 export function ParagraphElement(props: PlateElementProps) {
8 return (
9 <PlateElement {...props} className={cn("m-0 px-0 py-1")}>
10 {props.children}
11 </PlateElement>
12 );
13 }
14
14 lines Plain Text