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