mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-03 21:02:40 +02:00
16 lines
337 B
TypeScript
16 lines
337 B
TypeScript
|
|
'use client';
|
||
|
|
|
||
|
|
import * as React from 'react';
|
||
|
|
|
||
|
|
import type { PlateLeafProps } from 'platejs/react';
|
||
|
|
|
||
|
|
import { PlateLeaf } from 'platejs/react';
|
||
|
|
|
||
|
|
export function HighlightLeaf(props: PlateLeafProps) {
|
||
|
|
return (
|
||
|
|
<PlateLeaf {...props} as="mark" className="bg-highlight/30 text-inherit">
|
||
|
|
{props.children}
|
||
|
|
</PlateLeaf>
|
||
|
|
);
|
||
|
|
}
|