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