2026-02-17 12:47:39 +05:30
|
|
|
"use client";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import * as React from "react";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import type { PlateLeafProps } from "platejs/react";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import { PlateLeaf } from "platejs/react";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
|
|
|
|
export function HighlightLeaf(props: PlateLeafProps) {
|
2026-02-17 12:47:39 +05:30
|
|
|
return (
|
|
|
|
|
<PlateLeaf {...props} as="mark" className="bg-yellow-200 dark:bg-yellow-800 text-inherit">
|
|
|
|
|
{props.children}
|
|
|
|
|
</PlateLeaf>
|
|
|
|
|
);
|
2026-02-16 00:11:34 +05:30
|
|
|
}
|