返回 presentation-ai
highlight-node.tsx
根目录 / src / components / plate / ui / highlight-node.tsx
1 "use client";
2
3 import { PlateLeaf, type PlateLeafProps } from "platejs/react";
4
5 export function HighlightLeaf(props: PlateLeafProps) {
6 return (
7 <PlateLeaf {...props} as="mark" className="bg-highlight/30 text-inherit">
8 {props.children}
9 </PlateLeaf>
10 );
11 }
12
12 lines Plain Text